diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-29 12:15:17 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-29 12:15:17 +0200 |
commit | 40ced90916c742bd813be8bfaf7c17490a75a3e0 (patch) | |
tree | 750cbc86b076b1dc24a6d9c80d627f00ad54f892 /src/webpage.cpp | |
parent | Implementing a new about: protocol, 1st bunch (diff) | |
download | rekonq-40ced90916c742bd813be8bfaf7c17490a75a3e0.tar.xz |
Implemented about protocol to load home page(s)
and changed its layout
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 942f20e3..49896892 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -107,6 +107,12 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r return false; } + if (request.url().scheme() == QLatin1String("about")) + { + Application::instance()->loadUrl( request.url() ); + return false; + } + m_requestedUrl = request.url(); return QWebPage::acceptNavigationRequest(frame, request, type); |