summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index c9a9b840..2bc054a4 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -48,7 +48,7 @@
#include <KStandardDirs>
#include <KUrl>
#include <KDebug>
-
+#include <KToolInvocation>
#include <KDE/KParts/BrowserRun>
#include <KDE/KMimeTypeTrader>
@@ -92,7 +92,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;
+ }
+
if (m_keyboardModifiers & Qt::ControlModifier || m_pressedButtons == Qt::MidButton)
{
Application::instance()->loadUrl(request.url(), Rekonq::SettingOpenTab);