From af6878d42b8868299f9b113a47a8102b287fd194 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 16 Jun 2017 13:06:31 -0400 Subject: Clean up the auto-extract functionality in lumina-fm --- src-qt5/desktop-utils/lumina-fm/lumina-fm.pro | 1 + src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src-qt5/desktop-utils') diff --git a/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro b/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro index a98161f0..f7253e84 100644 --- a/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro +++ b/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro @@ -14,6 +14,7 @@ include(../../core/libLumina/LDesktopUtils.pri) #includes LUtils include(../../core/libLumina/LuminaXDG.pri) include(../../core/libLumina/LuminaSingleApplication.pri) include(../../core/libLumina/LuminaThemes.pri) +include(../../core/libLumina/ExternalProcess.pri) SOURCES += main.cpp \ MainUI.cpp \ diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp index 02b3c433..1e68ced0 100644 --- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp +++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp @@ -22,6 +22,7 @@ #include #include #include + #include #include "../ScrollDialog.h" @@ -261,7 +262,7 @@ connect(kCopy, SIGNAL(activated()), this, SLOT(copyFiles()) ); connect(kPaste, SIGNAL(activated()), this, SLOT(pasteFiles()) ); connect(kRename, SIGNAL(activated()), this, SLOT(renameFiles()) ); - connect(kExtract, SIGNAL(activated()), this, SLOT(autoextractfiles()) ); + connect(kExtract, SIGNAL(activated()), this, SLOT(autoExtractFiles()) ); connect(kFav, SIGNAL(activated()), this, SLOT(favoriteFiles()) ); connect(kDel, SIGNAL(activated()), this, SLOT(removeFiles()) ); connect(kOpSS, SIGNAL(activated()), this, SLOT(openInSlideshow()) ); @@ -847,12 +848,14 @@ //---------------------------------------------------// void DirWidget::autoExtractFiles(){ - QProcess *pExtract= new QProcess(this); + QStringList files = currentBrowser()->currentSelection(); + ExternalProcess::launch("lumina-archiver", QStringList() << "--ax" << files); + /*ExternalProcess *pExtract= new ExternalProcess(this); QString program = "lumina-archiver --ax "; QStringList files = currentBrowser()->currentSelection(); for(int i=0; istart(runline); + pExtract->start(runline);*/ } //---------------------------------------------------// -- cgit