From 74996d9bce37e2f9fb0b35631775bf73ab574693 Mon Sep 17 00:00:00 2001 From: "Jonas M. Gastal" Date: Thu, 20 Aug 2009 23:42:49 -0300 Subject: Fixes handling of mailto links. --- src/webpage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/webpage.cpp b/src/webpage.cpp index 33711f7d..c81d93da 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -91,13 +91,13 @@ WebPage::~WebPage() bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type) { + m_requestedUrl = request.url(); + if (m_requestedUrl.scheme() == QLatin1String("mailto")) { KToolInvocation::invokeMailer(m_requestedUrl); return false; } - - m_requestedUrl = request.url(); if (m_keyboardModifiers & Qt::ControlModifier || m_pressedButtons == Qt::MidButton) { -- cgit v1.2.1