diff options
author | q5sys <jt@obs-sec.com> | 2017-05-29 17:47:30 -0400 |
---|---|---|
committer | q5sys <jt@obs-sec.com> | 2017-05-29 17:47:30 -0400 |
commit | 68819db4434b36888bc3b821fb51e9b7c8ca7911 (patch) | |
tree | 52037de90811185d2c8d9e0fe9c2f75e4bc52971 /src-qt5/desktop-utils/lumina-archiver | |
parent | Cleanup how the QtConcurrent thread is run in the Browser class a bit - no re... (diff) | |
download | lumina-68819db4434b36888bc3b821fb51e9b7c8ca7911.tar.gz lumina-68819db4434b36888bc3b821fb51e9b7c8ca7911.tar.bz2 lumina-68819db4434b36888bc3b821fb51e9b7c8ca7911.zip |
prototype autoextract function (currently disabled)
Diffstat (limited to 'src-qt5/desktop-utils/lumina-archiver')
-rw-r--r-- | src-qt5/desktop-utils/lumina-archiver/MainUI.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp b/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp index 2972550c..ab2b4651 100644 --- a/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp @@ -70,7 +70,16 @@ void MainUI::LoadArguments(QStringList args){ bool burnIMG = false; for(int i=0; i<args.length(); i++){ if(args[i]=="--burn-img"){ burnIMG = true; continue; } - if(QFile::exists(args[i])){ +/* + if(args[i]=="--ax"){i++; QString archivefile = args[i]; + QFileInfo filename(args[i]); + QDir filedir = filename.canonicalPath(); + QString newdir = filename.completeBaseName(); + filedir.mkpath(newdir); + BACKEND->startExtract(newdir, true, archivefile); + qApp->exit();} +*/ + if(QFile::exists(args[i])){ ui->label_progress->setText(tr("Opening Archive...")); BACKEND->loadFile(args[i]); ui->actionUSB_Image->setEnabled(args[i].simplified().endsWith(".img")); |