diff options
author | Jonas M. Gastal <jgastal@gmail.com> | 2009-08-20 23:42:49 -0300 |
---|---|---|
committer | Jonas M. Gastal <jgastal@gmail.com> | 2009-08-20 23:42:49 -0300 |
commit | 74996d9bce37e2f9fb0b35631775bf73ab574693 (patch) | |
tree | 8928dadcc8ba8cd13e8df57924050f5e0e66a25c /src/webpage.cpp | |
parent | Some work on WebPage class.. (diff) | |
download | rekonq-74996d9bce37e2f9fb0b35631775bf73ab574693.tar.xz |
Fixes handling of mailto links.
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |