diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-21 15:27:32 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-21 15:27:32 +0200 |
commit | 8b4e5ba20a027750c8f7e1d0ca2463bcb10d67ee (patch) | |
tree | cc0d6d8ecb6ab14e1136cc860376c7cf8419e02a | |
parent | Added comment (diff) | |
parent | Fixes handling of mailto links. (diff) | |
download | rekonq-8b4e5ba20a027750c8f7e1d0ca2463bcb10d67ee.tar.xz |
Merge commit 'jokerwww/mailto'
-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) { |