diff options
author | Ken Moore <ken@ixsystems.com> | 2016-12-01 14:16:16 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-12-01 14:16:16 -0500 |
commit | 41cf532756bdf300a9a4db35809ef2b95c91a868 (patch) | |
tree | bc099260f51fade61492b146d7127b2f38b39e3a | |
parent | Get rid of the "fortune" usage, and replace it with a built-in system of tips... (diff) | |
download | lumina-41cf532756bdf300a9a4db35809ef2b95c91a868.tar.gz lumina-41cf532756bdf300a9a4db35809ef2b95c91a868.tar.bz2 lumina-41cf532756bdf300a9a4db35809ef2b95c91a868.zip |
Fix up the non-selection extraction of an archive. (empty "name" field messed it up)
-rw-r--r-- | src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp b/src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp index 9a8cd5b7..78efd51c 100644 --- a/src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp +++ b/src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp @@ -135,6 +135,7 @@ void Backend::startExtract(QString path, bool overwrite, QStringList files){ if(!overwrite){ args << "-k"; } args << flags; for(int i=0; i<files.length(); i++){ + if(files[i].simplified().isEmpty()){ continue; } args << "--include" << files[i] << "--strip-components" << QString::number(files[i].count("/")); } args << "-C" << path; |