diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-02-17 18:11:19 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-02-17 18:11:19 +0100 |
commit | 8e5c5ae29692e5e8179b17f574d454fab0c90dda (patch) | |
tree | 9379436bce60ce7c272ea6984b11ee6c442f0757 /src/tabwindow/tabwindow.cpp | |
parent | Closed Tabs page return, first bits (diff) | |
download | rekonq-8e5c5ae29692e5e8179b17f574d454fab0c90dda.tar.xz |
Closed tabs page, last bits (?)
Restore closed tabs on restart
Diffstat (limited to 'src/tabwindow/tabwindow.cpp')
-rw-r--r-- | src/tabwindow/tabwindow.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp index 6865ca97..47b3f254 100644 --- a/src/tabwindow/tabwindow.cpp +++ b/src/tabwindow/tabwindow.cpp @@ -41,6 +41,7 @@ #include "bookmarkmanager.h" #include "iconmanager.h" +#include "sessionmanager.h" // KDE Includes #include <KAction> @@ -208,6 +209,17 @@ void TabWindow::init() connect(favoritesSignalMapper, SIGNAL(mapped(int)), this, SLOT(loadFavorite(int))); _ac->readSettings(); + + // ---------------------------------------------------------------------------------------------- + int n = rApp->tabWindowList().count() + 1; + QList<TabHistory> list = SessionManager::self()->closedSitesForWindow( QL1S("win") + QString::number(n) ); + Q_FOREACH(const TabHistory & tab, list) + { + if (tab.url.startsWith(QL1S("about"))) + continue; + m_recentlyClosedTabs.removeAll(tab); + m_recentlyClosedTabs.prepend(tab); + } } |