summaryrefslogtreecommitdiff
path: root/src/newtabpage.cpp
diff options
context:
space:
mode:
authorRohan Garg <rohangarg@ubuntu.com>2010-08-24 23:40:35 +0530
committerRohan Garg <rohangarg@ubuntu.com>2010-08-24 23:40:35 +0530
commitf5d3aa574af43eea408163da02100e5e24305de1 (patch)
tree69af76305e18a947b2c7bd350bb4641ab49081fe /src/newtabpage.cpp
parent Fix urlbar to make about:foo the first entry instead of the googling (diff)
downloadrekonq-f5d3aa574af43eea408163da02100e5e24305de1.tar.xz
Replace with QByteArray for faster searches
modified: src/newtabpage.cpp
Diffstat (limited to 'src/newtabpage.cpp')
-rw-r--r--src/newtabpage.cpp11
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");