diff options
-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) { |