summaryrefslogtreecommitdiff
path: root/src/protocolhandler.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-04-24 16:47:55 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-04-24 16:47:55 +0200
commit4c0ad2049f3b49590a7d19f89ebcb767c3c15283 (patch)
treec043cc517efb6e8601266977e9f17a1277d3c32f /src/protocolhandler.cpp
parentset Main Window on KDirLister (diff)
downloadrekonq-4c0ad2049f3b49590a7d19f89ebcb767c3c15283.tar.xz
Clean up url management
- Let ftp url(s) work again - Do NOT check url twice via KUriFilter (removed MainWindow::filterUrl) - ensure we are lowering just http url hosts - mailto via urlbar handling BUG: 298114 CCBUG: 284829
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r--src/protocolhandler.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index 657e8a21..d69171ac 100644
--- a/src/protocolhandler.cpp
+++ b/src/protocolhandler.cpp
@@ -169,7 +169,15 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
return true;
}
-
+
+ // "mailto" handling: It needs to be handled both in preHandling (mail url launched)
+ // and in postHandling (mail links clicked)
+ if (_url.protocol() == QL1S("mailto"))
+ {
+ KToolInvocation::invokeMailer(_url);
+ return true;
+ }
+
// "apt" handling
// NOTE: this is a stupid workaround to ensure apt protocol works
if (_url.protocol() == QL1S("apt"))