From 5d47c66cefab5f6ee5be15cc8887525e22233de0 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 18 Sep 2009 19:02:27 +0200 Subject: Fixed options show recently closed tabs / show recent history --- src/homepage.cpp | 2 +- src/rekonq.kcfg | 4 +- src/settings.cpp | 8 +++- src/settings_newtabpage.ui | 94 +--------------------------------------------- 4 files changed, 11 insertions(+), 97 deletions(-) diff --git a/src/homepage.cpp b/src/homepage.cpp index 76c4f393..1f056a92 100644 --- a/src/homepage.cpp +++ b/src/homepage.cpp @@ -73,7 +73,7 @@ QString HomePage::rekonqHomePage() QString speed = speedDial(); QString search = searchEngines(); - QString lastBlock = ReKonfig::useRecentlyClosedTabs() ? recentlyClosedTabs() : fillRecentHistory(); + QString lastBlock = ReKonfig::showLastVisitedSites() ? fillRecentHistory() : recentlyClosedTabs() ; QString html = QString(QLatin1String(file.readAll())) diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg index 417b7fbc..16a77d2c 100644 --- a/src/rekonq.kcfg +++ b/src/rekonq.kcfg @@ -17,8 +17,8 @@ http://www.kde.org,http://www.google.com,http://rekonq.sourceforge.net - - false + + true diff --git a/src/settings.cpp b/src/settings.cpp index c43b23fc..ae8ccc4d 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -200,7 +200,9 @@ void SettingsDialog::readConfig() ReKonfig::setPreviewNames(names); ReKonfig::setPreviewUrls(urls); - + + d->newtabpageUi.showLastVisitedSites->setChecked( ReKonfig::showLastVisitedSites() ); + // ======= Fonts d->fontsUi.kcfg_fixedFont->setOnlyFixed(true); @@ -225,7 +227,9 @@ void SettingsDialog::saveSettings() ReKonfig::setPreviewNames(names); ReKonfig::setPreviewUrls(urls); - + + ReKonfig::setShowLastVisitedSites( d->newtabpageUi.showLastVisitedSites->isChecked() ); + ReKonfig::self()->writeConfig(); d->ebrowsingModule->save(); d->cookiesModule->save(); diff --git a/src/settings_newtabpage.ui b/src/settings_newtabpage.ui index 006185c0..2061d285 100644 --- a/src/settings_newtabpage.ui +++ b/src/settings_newtabpage.ui @@ -39,96 +39,6 @@ - - - KDE site - - - - - http://www.kde.org - - - - - KDE apps - - - - - http://kde-apps.org - - - - - rekonq site - - - - - http://rekonq.sourceforge.net - - - - - Google - - - - - http://www.google.com - - - - - Wikipedia - - - - - http://wikipedia.org - - - - - SourceForge - - - - - http://sourceforge.net - - - - - Kernel - - - - - http://www.kernel.org - - - - - Wordpress - - - - - http://wordpress.com - - - - - Planet KDE - - - - - http://planetkde.org - - @@ -141,14 +51,14 @@ - + show last 20 visited sites - + show recently closed tabs -- cgit v1.2.1