diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-25 10:34:17 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-25 10:34:17 +0200 |
commit | 6b740433b692fa46841893605b2ca2a4df120f91 (patch) | |
tree | 371100aa65a6026f3c6c1f4c8d7b9296666a616d /src/protocolhandler.cpp | |
parent | fix typo (diff) | |
parent | Move encodedUrl inside if block, better memory usage (diff) | |
download | rekonq-6b740433b692fa46841893605b2ca2a4df120f91.tar.xz |
Merge commit 'refs/merge-requests/2291' of git://gitorious.org/rekonq/mainline into m2291
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r-- | src/protocolhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp index 1f84b420..5cc09f44 100644 --- a/src/protocolhandler.cpp +++ b/src/protocolhandler.cpp @@ -145,13 +145,14 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra // "about" handling if (_url.protocol() == QL1S("about")) { + QByteArray encodedUrl = _url.toEncoded(); // let webkit manage the about:blank url... - if (_url == KUrl("about:blank")) + if (encodedUrl == QByteArray("about:blank")) { return false; } - if (_url == KUrl("about:home")) + if (encodedUrl == QByteArray("about:home")) { switch (ReKonfig::newTabStartPage()) { |