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

Port KRun

parent fb8eab19
......@@ -50,7 +50,8 @@
#include "kmail_debug.h"
#include <KLocalizedString>
#include <KXMLGUIClient>
#include <KRun>
#include <KIO/OpenUrlJob>
#include <KIO/JobUiDelegate>
#include <QMenu>
#include <KUriFilter>
#include <KStringHandler>
......@@ -577,7 +578,9 @@ void MessageActions::slotRunUrl(QAction *urlAction)
{
const QVariant q = urlAction->data();
if (q.type() == QVariant::Url) {
new KRun(q.toUrl(), mParent);
KIO::OpenUrlJob *job = new KIO::OpenUrlJob(q.toUrl());
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, mParent));
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