From 7a106ed1b4af53a04467cfdaa4c79d5946a3b999 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 11 Nov 2009 11:19:22 +0100 Subject: Fixing about: protocol loading. And removing MouseMoveEvent check. I have to point out that this fix works just with Qt 4.5 --- src/webpage.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/webpage.cpp') diff --git a/src/webpage.cpp b/src/webpage.cpp index 51722986..3400564e 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -114,9 +114,10 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r return false; } - if (request.url().scheme() == QLatin1String("rekonq")) + if (request.url().scheme() == QLatin1String("about")) { - Application::instance()->loadUrl( request.url() ); + kDebug() << "loading " << request.url(); + Application::instance()->mainWindow()->newTabPage( request.url() ); return false; } @@ -129,7 +130,6 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r WebPage *WebPage::createWindow(QWebPage::WebWindowType type) { kDebug() << "WebPage createWindow slot"; - return newWindow(type); } @@ -138,9 +138,7 @@ WebPage *WebPage::newWindow(WebWindowType type) { // added to manage web modal dialogs if (type == QWebPage::WebModalDialog) - { - kDebug() << "Modal Dialog ---------------------------------------"; - } + kDebug() << "Modal Dialog"; WebView *w = 0; if(ReKonfig::openTabNoWindow()) -- cgit v1.2.1