From 171650e888d296959bd4eda2e61562447497a00a Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 29 Nov 2012 18:47:49 +0100 Subject: Ensure settings respect Honor settings when opening new tab (fix for the rekonq2 port) --- src/webtab/protocolhandler.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/webtab') diff --git a/src/webtab/protocolhandler.cpp b/src/webtab/protocolhandler.cpp index dcf9d1a4..c21915f7 100644 --- a/src/webtab/protocolhandler.cpp +++ b/src/webtab/protocolhandler.cpp @@ -134,6 +134,7 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra if (_url.protocol() == QL1S("about")) { QByteArray encodedUrl = _url.toEncoded(); + // let webkit manage the about:blank url... if (encodedUrl.startsWith(QByteArray("about:blank"))) { @@ -147,21 +148,18 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra case 0: // favorites _url = KUrl("about:favorites"); break; - case 1: // closed tabs - _url = KUrl("about:closedTabs"); - break; - case 2: // bookmarks + case 1: // bookmarks _url = KUrl("about:bookmarks"); break; - case 3: // history + case 2: // history _url = KUrl("about:history"); break; - case 4: // downloads + case 3: // downloads _url = KUrl("about:downloads"); break; - case 5: // tabs - _url = KUrl("about:tabs"); default: // unuseful + kDebug() << "oops... this should NOT happen..."; + _url = KUrl("about:favorites"); break; } } -- cgit v1.2.1