From 79e11d892e2ff26636a647e91371aaef2c5d435d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 2 Oct 2009 16:20:18 +0200 Subject: moving from about: protocol to rekonq: protocol :D This fix some issues, about some "stupid" sites whose js sends strange "about:blank" requests (just found 2!!) --- src/homepage.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/homepage.cpp') diff --git a/src/homepage.cpp b/src/homepage.cpp index bfbf0400..723e670c 100644 --- a/src/homepage.cpp +++ b/src/homepage.cpp @@ -75,13 +75,13 @@ QString HomePage::rekonqHomePage(const KUrl &url) QString menu = homePageMenu(); QString speed; - if(url == KUrl("about:lastSites")) + if(url == KUrl("rekonq:lastSites")) speed = lastVisitedSites(); - if(url == KUrl("about:history")) + if(url == KUrl("rekonq:history")) speed = fillHistory(); - if(url == KUrl("about:bookmarks")) + if(url == KUrl("rekonq:bookmarks")) speed = fillBookmarks(); - if(url == KUrl("about:home") || url == KUrl("about:favorites")) + if(url == KUrl("rekonq:home") || url == KUrl("rekonq:favorites")) speed = fillFavorites(); QString html = QString(QLatin1String(file.readAll())) @@ -163,10 +163,10 @@ QString HomePage::lastVisitedSites() QString HomePage::homePageMenu() { QString menu = ""; - menu += "
Last Visited Sites
"; - menu += "
History
"; - menu += "
Bookmarks
"; - menu += "
Favorites
"; + menu += "
Last Visited Sites
"; + menu += "
History
"; + menu += "
Bookmarks
"; + menu += "
Favorites
"; return menu; } -- cgit v1.2.1