aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-05 18:18:14 -0400
committerKen Moore <ken@ixsystems.com>2017-06-05 18:18:14 -0400
commitb56f03304c1ff3439e196807d4cfe88ccc9acc9f (patch)
tree3a42544b4ec2c8c3ab9db527fa082f149e26203b
parentCommit some adjustments to the auto-extract functionality. (diff)
downloadlumina-b56f03304c1ff3439e196807d4cfe88ccc9acc9f.tar.gz
lumina-b56f03304c1ff3439e196807d4cfe88ccc9acc9f.tar.bz2
lumina-b56f03304c1ff3439e196807d4cfe88ccc9acc9f.zip
Make the auto-extract start as soon as the file finishes loading.
-rw-r--r--src-qt5/desktop-utils/lumina-archiver/MainUI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp b/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp
index bc0c4d8f..d812d924 100644
--- a/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp
@@ -102,10 +102,11 @@ void MainUI::LoadArguments(QStringList args){
}*/
if(QFile::exists(args[i])){
ui->label_progress->setText(tr("Opening Archive..."));
+ if(autoExtract){ connect(BACKEND, SIGNAL(fileLoaded()), this, SLOT(autoextractFiles()) ); }
BACKEND->loadFile(args[i]);
ui->actionUSB_Image->setEnabled(args[i].simplified().endsWith(".img"));
if(burnIMG){ BurnImgToUSB(); } //Go ahead and launch the burn dialog right away
- else if(autoExtract){ QTimer::singleShot(2000, this, SLOT(autoextractFiles())); }
+ //else if(autoExtract){ QTimer::singleShot(2000, this, SLOT(autoextractFiles())); }
break;
}
}
@@ -268,6 +269,7 @@ void MainUI::extractFiles(){
}
void MainUI::autoextractFiles(){
+ disconnect(BACKEND, SIGNAL(fileLoaded()), this, SLOT(autoextractFiles()) );
QString dir = BACKEND->currentFile().section("/",0,-2); //parent directory of the archive
//QFileDialog::getExistingDirectory(this, tr("Extract Into Directory"), QDir::homePath() );
if(dir.isEmpty()){ return; }
bgstack15