aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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