diff options
author | Ken Moore <ken@ixsystems.com> | 2017-11-01 12:47:54 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-11-01 12:48:14 -0400 |
commit | 6b2db1138695feeddcf3878ba1997516eab11616 (patch) | |
tree | 8094163fd08c2ba40d83190e2052c6ad16c82163 /src-qt5/desktop-utils/lumina-archiver/MainUI.cpp | |
parent | Start working on fixing up lumina-fileinfo (diff) | |
download | lumina-6b2db1138695feeddcf3878ba1997516eab11616.tar.gz lumina-6b2db1138695feeddcf3878ba1997516eab11616.tar.bz2 lumina-6b2db1138695feeddcf3878ba1997516eab11616.zip |
Quick cleanup of input parsing in lumina-archiver.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-archiver/MainUI.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-archiver/MainUI.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp b/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp index c4b35474..79c023dc 100644 --- a/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp @@ -91,24 +91,18 @@ void MainUI::LoadArguments(QStringList args){ //Now go through and do any actions as needed ui->label_progress->setText(tr("Opening Archive...")); if(action==1){ - qDebug() << "blah"; + //qDebug() << "blah"; connect(BACKEND, SIGNAL(FileLoaded()), this, SLOT(autoextractFiles()) ); connect(BACKEND, SIGNAL(ExtractSuccessful()), delayClose, SLOT(start()) ); }else if(action==2){ aaFileList.clear(); for(int j=1; j<files.length(); j++){ aaFileList << files[j]; } + qDebug() << "AA Files:" << aaFileList; connect(BACKEND, SIGNAL(FileLoaded()), this, SLOT(autoArchiveFiles()) ); connect(BACKEND, SIGNAL(ArchivalSuccessful()), delayClose, SLOT(start()) ); - }else if(action==3){ - sxList.clear(); - for(int j=0; j<files.length(); j++){ sxList << files[j]; } - for(int k=0; k<sxList.length(); k++){ - if(k==0){ sxFile = sxList[k]; } - if(k==1){ sxPath = sxList[k]; } - } - qDebug() << "sxList" << sxList; - qDebug() << "sxFile" << sxFile; - qDebug() << "sxPath" << sxPath; + }else if(action==3 && files.length()==2){ + sxFile = files[0]; + sxPath = files[1]; connect(BACKEND, SIGNAL(FileLoaded()), this, SLOT(simpleExtractFiles()) ); connect(BACKEND, SIGNAL(ExtractSuccessful()), delayClose, SLOT(start()) ); } |