Commit 28f2ef4b authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Do not highlight file after compression

Dolphin opens a new tab whenever the file is compressed and
is not smart enough to highlight it in the currently open view.
Because people are annoyed by it and the alternatives are complex to implement,
removing it is the best solution.

BUG: 440663
parent cff83eab
Pipeline #114752 passed with stage
in 3 minutes and 34 seconds
......@@ -16,7 +16,6 @@
#include <KPluginFactory>
#include <algorithm>
#include <KIO/OpenFileManagerWindowJob>
#include "pluginmanager.h"
#include "addtoarchive.h"
......@@ -102,10 +101,8 @@ QAction *CompressFileItemAction::createAction(const QIcon& icon, const QString&
}
}
addToArchiveJob->start();
connect(addToArchiveJob, &KJob::finished, this, [this, addToArchiveJob](){
if (addToArchiveJob->error() == 0) {
KIO::highlightInFileManager({QUrl::fromLocalFile(addToArchiveJob->fileName())});
} else if (!addToArchiveJob->errorString().isEmpty()) {
connect(addToArchiveJob, &KJob::finished, this, [this, addToArchiveJob]() {
if (addToArchiveJob->error() != 0) {
Q_EMIT error(addToArchiveJob->errorString());
}
});
......
Markdown is supported
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