diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-02 16:20:18 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-02 16:20:18 +0200 |
commit | 79e11d892e2ff26636a647e91371aaef2c5d435d (patch) | |
tree | 48148f714597b96541f6feecb877fd6d31f1eff2 /src/homepage.cpp | |
parent | Simpler KIO management (no more metadata) (diff) | |
download | rekonq-79e11d892e2ff26636a647e91371aaef2c5d435d.tar.xz |
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!!)
Diffstat (limited to 'src/homepage.cpp')
-rw-r--r-- | src/homepage.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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 += "<div class=\"link\"><a href=\"about:lastSites\">Last Visited Sites</a></div>"; - menu += "<div class=\"link\"><a href=\"about:history\">History</a></div>"; - menu += "<div class=\"link\"><a href=\"about:bookmarks\">Bookmarks</a></div>"; - menu += "<div class=\"link\"><a href=\"about:favorites\">Favorites</a></div>"; + menu += "<div class=\"link\"><a href=\"rekonq:lastSites\">Last Visited Sites</a></div>"; + menu += "<div class=\"link\"><a href=\"rekonq:history\">History</a></div>"; + menu += "<div class=\"link\"><a href=\"rekonq:bookmarks\">Bookmarks</a></div>"; + menu += "<div class=\"link\"><a href=\"rekonq:favorites\">Favorites</a></div>"; return menu; } |