summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 20:31:34 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 20:31:34 (GMT)
commit5e78ca3df5cef47f109af3666bb8ce521d22b63c (patch)
tree0ff67e0b721a7977d8de1e5d5f483f1725d823e6
parentf87a306ec1ae541a7e183d1468a81ba8bdd04f70 (diff)
Stop using deprecated way to open browser
-rw-r--r--ui/pageview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/pageview.cpp b/ui/pageview.cpp
index d96db07..7c15fb0 100644
--- a/ui/pageview.cpp
+++ b/ui/pageview.cpp
@@ -34,6 +34,7 @@
#include <qmenu.h>
#include <QInputDialog>
#include <qdesktopwidget.h>
+#include <QDesktopServices>
#include <QMimeDatabase>
#include <QMimeData>
@@ -4753,7 +4754,7 @@ void PageView::slotHandleWebShortcutAction()
KUriFilterData filterData( action->data().toString() );
if ( KUriFilter::self()->filterSearchUri( filterData, KUriFilter::WebShortcutFilter ) ) {
- KToolInvocation::invokeBrowser( filterData.uri().url() );
+ QDesktopServices::openUrl( filterData.uri() );
}
}
}