summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-21 15:27:32 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-21 15:27:32 +0200
commit8b4e5ba20a027750c8f7e1d0ca2463bcb10d67ee (patch)
treecc0d6d8ecb6ab14e1136cc860376c7cf8419e02a
parentAdded comment (diff)
parentFixes handling of mailto links. (diff)
downloadrekonq-8b4e5ba20a027750c8f7e1d0ca2463bcb10d67ee.tar.xz
Merge commit 'jokerwww/mailto'
-rw-r--r--src/webpage.cpp4
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)
{