diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-03-31 01:49:41 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-03-31 01:49:41 +0200 |
commit | 586f23eac0773453a5718758db7bf57b96336605 (patch) | |
tree | 619f50fbcbb411a185da25448a328bad4c0ab0cf | |
parent | opening new tabs on target _blank. Try 1 (diff) | |
download | rekonq-586f23eac0773453a5718758db7bf57b96336605.tar.xz |
Properly opening mailto links
-rw-r--r-- | src/webview.cpp | 7 |
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) { |