summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-12-15 03:29:48 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-12-16 00:59:32 +0100
commitaa9521b0e0f810a9ba94d7f6c7f9100c3f69d862 (patch)
tree57dd9649ba0b69f1fa385416c9af9d78587f2de9 /src/webpage.cpp
parentfix spacing (diff)
downloadrekonq-aa9521b0e0f810a9ba94d7f6c7f9100c3f69d862.tar.xz
First form of protocol handling
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 3fc0aac4..accf0e44 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -100,18 +100,9 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r
return false;
}
- if (request.url().scheme() == QLatin1String("mailto"))
- {
- KToolInvocation::invokeMailer(request.url());
+ if(m_protHandler.handle(request,frame))
return false;
- }
-
- if (request.url().scheme() == QLatin1String("about"))
- {
- Application::instance()->mainWindow()->newTabPage( request.url() );
- return true;
- }
-
+
m_requestedUrl = request.url();
return KWebPage::acceptNavigationRequest(frame, request, type);