[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [rekonq/frameworks] src/webtab: Remove deprecated KToolInvocation calls
From: Andrea Diamantini <adjam7 () gmail ! com>
Date: 2014-10-03 14:04:41
Message-ID: E1Xa3TN-0007Zo-31 () scm ! kde ! org
[Download RAW message or body]
Git commit db056c73f8096abbb14ec49249ffd5e0649b3623 by Andrea Diamantini.
Committed on 03/10/2014 at 14:05.
Pushed by adjam into branch 'frameworks'.
Remove deprecated KToolInvocation calls
M +3 -3 src/webtab/protocolhandler.cpp
http://commits.kde.org/rekonq/db056c73f8096abbb14ec49249ffd5e0649b3623
diff --git a/src/webtab/protocolhandler.cpp b/src/webtab/protocolhandler.cpp
index 2352984..b9e25a9 100644
--- a/src/webtab/protocolhandler.cpp
+++ b/src/webtab/protocolhandler.cpp
@@ -49,11 +49,11 @@
#include <KLocalizedString>
#include <KMessageBox>
#include <KProcess>
-#include <KToolInvocation>
#include <KProtocolInfo>
#include <KRun>
// Qt Includes
+#include <QDesktopServices>
#include <QStandardPaths>
#include <QNetworkRequest>
#include <QUrlQuery>
@@ -202,7 +202,7 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
// and in postHandling (mail links clicked)
if (_url.scheme() == QL1S("mailto"))
{
- KToolInvocation::invokeMailer(_url);
+ QDesktopServices::openUrl(_url);
return true;
}
@@ -239,7 +239,7 @@ bool ProtocolHandler::postHandling(const QNetworkRequest &request, QWebFrame *fr
// and in prehandling (mail url launched)
if (_url.scheme() == QL1S("mailto"))
{
- KToolInvocation::invokeMailer(_url);
+ QDesktopServices::openUrl(_url);
return true;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic