summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-31 01:49:41 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-03-31 01:49:41 +0200
commit586f23eac0773453a5718758db7bf57b96336605 (patch)
tree619f50fbcbb411a185da25448a328bad4c0ab0cf /src
parentopening new tabs on target _blank. Try 1 (diff)
downloadrekonq-586f23eac0773453a5718758db7bf57b96336605.tar.xz
Properly opening mailto links
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 07cf4b53..c3ad49b3 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -79,6 +79,13 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r
{
kWarning() << "Accepting Navigation Request..";
+ QString scheme = request.url().scheme();
+ if (scheme == QLatin1String("mailto") )
+ {
+ QDesktopServices::openUrl(request.url());
+ return false;
+ }
+
// ctrl open in new tab and select
if (type == QWebPage::NavigationTypeLinkClicked)
{