summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-25 10:34:17 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-25 10:34:17 +0200
commit6b740433b692fa46841893605b2ca2a4df120f91 (patch)
tree371100aa65a6026f3c6c1f4c8d7b9296666a616d /src/application.cpp
parentfix typo (diff)
parent Move encodedUrl inside if block, better memory usage (diff)
downloadrekonq-6b740433b692fa46841893605b2ca2a4df120f91.tar.xz
Merge commit 'refs/merge-requests/2291' of git://gitorious.org/rekonq/mainline into m2291
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/application.cpp b/src/application.cpp
index e5677a0d..df4c3d51 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -341,18 +341,19 @@ KIcon Application::icon(const KUrl &url)
if (url.isEmpty())
return KIcon("text-html");
+ QByteArray encodedUrl = url.toEncoded();
// rekonq icons..
- if (url == KUrl("about:home"))
+ if (encodedUrl == QByteArray("about:home"))
return KIcon("go-home");
- if (url == KUrl("about:closedTabs"))
+ if (encodedUrl == QByteArray("about:closedTabs"))
return KIcon("tab-close");
- if (url == KUrl("about:history"))
+ if (encodedUrl == QByteArray("about:history"))
return KIcon("view-history");
- if (url == KUrl("about:bookmarks"))
+ if (encodedUrl == QByteArray("about:bookmarks"))
return KIcon("bookmarks");
- if (url == KUrl("about:favorites"))
+ if (encodedUrl == QByteArray("about:favorites"))
return KIcon("emblem-favorite");
- if (url == KUrl("about:downloads"))
+ if (encodedUrl == QByteArray("about:downloads"))
return KIcon("download");
KIcon icon = KIcon(QWebSettings::iconForUrl(url));