aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-archiver
diff options
context:
space:
mode:
authorq5sys <jt@obs-sec.com>2017-05-29 17:47:30 -0400
committerq5sys <jt@obs-sec.com>2017-05-29 17:47:30 -0400
commit68819db4434b36888bc3b821fb51e9b7c8ca7911 (patch)
tree52037de90811185d2c8d9e0fe9c2f75e4bc52971 /src-qt5/desktop-utils/lumina-archiver
parentCleanup how the QtConcurrent thread is run in the Browser class a bit - no re... (diff)
downloadlumina-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.cpp11
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"));
bgstack15