Commit 6d7d4284 authored by David Faure's avatar David Faure
Browse files

Port konq_popupmenu from KRun to OpenUrlJob

parent 96cb6e6b
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
#include <klocalizedstring.h> #include <klocalizedstring.h>
#include <kbookmarkmanager.h> #include <kbookmarkmanager.h>
#include <kbookmarkdialog.h> #include <kbookmarkdialog.h>
#include <krun.h> #include <KIO/OpenUrlJob>
#include <KIO/JobUiDelegate>
#include <kprotocolmanager.h> #include <kprotocolmanager.h>
#include <knewfilemenu.h> #include <knewfilemenu.h>
#include <kmimetypetrader.h> #include <kmimetypetrader.h>
...@@ -483,7 +484,9 @@ void KonqPopupMenu::setURLTitle(const QString &urlTitle) ...@@ -483,7 +484,9 @@ void KonqPopupMenu::setURLTitle(const QString &urlTitle)
void KonqPopupMenuPrivate::slotPopupNewView() void KonqPopupMenuPrivate::slotPopupNewView()
{ {
Q_FOREACH (const QUrl &url, m_popupItemProperties.urlList()) { Q_FOREACH (const QUrl &url, m_popupItemProperties.urlList()) {
(void) new KRun(url, m_parentWidget); KIO::OpenUrlJob *job = new KIO::OpenUrlJob(url);
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, m_parentWidget));
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