Commit 410fcc3b authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use KIO::JobUiDelegate for opening other application

KNotificationJobUiDelegate cannot open an 'Open With' dialog which is what we need here. Instead use the KIO delegate that can

BUG: 445530
(cherry picked from commit 2b769332)
parent 60bbcba9
......@@ -9,6 +9,7 @@
#include <KApplicationTrader>
#include <KIO/ApplicationLauncherJob>
#include <KIO/JobUiDelegate>
#include <KLocalizedString>
#include <KNotificationJobUiDelegate>
#include <KStandardShortcut>
......@@ -99,7 +100,7 @@ void ExportMenu::getKServiceItems()
const QUrl filename = mExportManager->getAutosaveFilename();
mExportManager->doSave(filename);
auto job = new KIO::ApplicationLauncherJob;
job->setUiDelegate(new KNotificationJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled));
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, window()));
job->setUrls({filename});
job->start();
});
......
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