From 586f23eac0773453a5718758db7bf57b96336605 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 31 Mar 2009 01:49:41 +0200 Subject: Properly opening mailto links --- src/webview.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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) { -- cgit v1.2.1