diff options
| author | Rohan Garg <rohangarg@ubuntu.com> | 2010-08-24 23:50:24 +0530 | 
|---|---|---|
| committer | Rohan Garg <rohangarg@ubuntu.com> | 2010-08-24 23:50:24 +0530 | 
| commit | 88a1c1932c046ca7a3173b93b798280fb229d588 (patch) | |
| tree | 41c736eadadc6fa4fb07ad141b96f4ef108d786c /src | |
| parent | Replace with QByteArray for faster searches (diff) | |
| download | rekonq-88a1c1932c046ca7a3173b93b798280fb229d588.tar.xz | |
	Replace more of KUrl by QByteArray...
	modified:   src/protocolhandler.cpp
Diffstat (limited to 'src')
| -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..eb6e513d 100644 --- a/src/protocolhandler.cpp +++ b/src/protocolhandler.cpp @@ -142,16 +142,17 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra          return true;      } +    QByteArray encodedUrl = _url.toEncoded();      // "about" handling      if (_url.protocol() == QL1S("about"))      {          // 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())              {  | 
