summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-11 11:19:22 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-11 11:19:22 +0100
commit7a106ed1b4af53a04467cfdaa4c79d5946a3b999 (patch)
tree12cda5f4ce235bd2671e4d6dc578724dd87e2827 /src/webpage.cpp
parentShow clear button in history panel filter line edit (diff)
downloadrekonq-7a106ed1b4af53a04467cfdaa4c79d5946a3b999.tar.xz
Fixing about: protocol loading.
And removing MouseMoveEvent check. I have to point out that this fix works just with Qt 4.5
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp10
1 files changed, 4 insertions, 6 deletions
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())