Commit 2c847f76 authored by Andrey Butirsky's avatar Andrey Butirsky Committed by Nate Graham
Browse files

Revert "Do not highlight file after compression"

This reverts commit 28f2ef4b

We don't need this any more with
system/dolphin!400.
parent 8a66ce3a
Pipeline #190972 passed with stage
in 3 minutes and 12 seconds
......@@ -17,6 +17,7 @@
#include <KPluginFactory>
#include <algorithm>
#include <KIO/OpenFileManagerWindowJob>
#include "pluginmanager.h"
#include "addtoarchive.h"
......@@ -114,8 +115,10 @@ QAction *CompressFileItemAction::createAction(const QIcon &icon, QWidget *parent
}
}
addToArchiveJob->start();
connect(addToArchiveJob, &KJob::finished, this, [this, addToArchiveJob]() {
if (addToArchiveJob->error() != 0) {
connect(addToArchiveJob, &KJob::finished, this, [this, addToArchiveJob](){
if (addToArchiveJob->error() == 0) {
KIO::highlightInFileManager({QUrl::fromLocalFile(addToArchiveJob->fileName())});
} else if (!addToArchiveJob->errorString().isEmpty()) {
Q_EMIT error(addToArchiveJob->errorString());
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment