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/newtabpage.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/newtabpage.cpp')
-rw-r--r-- | src/newtabpage.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp index 44b76e11..51081816 100644 --- a/src/newtabpage.cpp +++ b/src/newtabpage.cpp @@ -134,27 +134,28 @@ void NewTabPage::generate(const KUrl &url) browsingMenu(url); QString title; - if (url == KUrl("about:favorites")) + QByteArray encodedUrl = url.toEncoded(); + if (encodedUrl == QByteArray("about:favorites")) { favoritesPage(); title = i18n("Favorites"); } - else if (url == KUrl("about:closedTabs")) + else if (encodedUrl == QByteArray("about:closedTabs")) { closedTabsPage(); title = i18n("Closed Tabs"); } - else if (url == KUrl("about:history")) + else if (encodedUrl == QByteArray("about:history")) { historyPage(); title = i18n("History"); } - else if (url == KUrl("about:bookmarks")) + else if (encodedUrl == QByteArray("about:bookmarks")) { bookmarksPage(); title = i18n("Bookmarks"); } - else if (url == KUrl("about:downloads")) + else if (encodedUrl == QByteArray("about:downloads")) { downloadsPage(); title = i18n("Downloads"); |