Commit a657f6b7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port KRun

parent d1831cef
Pipeline #23863 failed with stage
in 31 minutes and 27 seconds
......@@ -548,15 +548,12 @@ void KTNEFMain::openWith(const KService::Ptr &offer)
if (!mView->getSelection().isEmpty()) {
KTNEFAttach *attach = mView->getSelection().at(0);
const QUrl url = QUrl::fromLocalFile(extractTemp(attach));
QList<QUrl> lst{url};
if (offer) {
KIO::ApplicationLauncherJob *job = new KIO::ApplicationLauncherJob(offer);
job->setUrls(lst);
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
job->start();
} else {
KRun::displayOpenWithDialog(lst, this, false);
}
const QList<QUrl> lst{url};
KIO::ApplicationLauncherJob *job = new KIO::ApplicationLauncherJob(offer);
job->setUrls(lst);
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
job->setAutoDelete(false);
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