From 5eedff3b0ea920e5c63c151a8101ab48d4f5b759 Mon Sep 17 00:00:00 2001 From: Matthieu Gicquel Date: Wed, 7 Oct 2009 16:53:11 +0200 Subject: fix homepage --- src/homepage.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/homepage.cpp b/src/homepage.cpp index 98060bed..bd0fb22b 100644 --- a/src/homepage.cpp +++ b/src/homepage.cpp @@ -74,31 +74,18 @@ QString HomePage::rekonqHomePage(const KUrl &url) QString imagesPath = QString("file://") + KGlobal::dirs()->findResourceDir("data", "rekonq/pics/bg.png") + QString("rekonq/pics"); QString menu = homePageMenu(url); - QString title, speed; + QString speed; if(url == KUrl("rekonq:lastSites")) - { - title = "

" + i18n("Last Visited Sites") + "

"; speed = lastVisitedSites(); - } if(url == KUrl("rekonq:history")) - { - title = "

" + i18n("History") + "

"; speed = fillHistory(); - } if(url == KUrl("rekonq:bookmarks")) - { - title = "

" + i18n("Bookmarks") + "

"; speed = fillBookmarks(); - } if(url == KUrl("rekonq:home") || url == KUrl("rekonq:favorites")) - { - title = "

" + i18n("Favorites") + "

"; speed = fillFavorites(); - } QString html = QString(QLatin1String(file.readAll())) .arg(imagesPath) - .arg(title) .arg(menu) .arg(speed) ; @@ -207,6 +194,7 @@ QString HomePage::homePageMenu(KUrl currentUrl) menu += "iconPath("rating", KIconLoader::Desktop) + "\" />"; menu += "Favorites"; + return menu; } -- cgit v1.2.1