summaryrefslogtreecommitdiff
path: root/src/tabwindow
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-02-17 18:11:19 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-02-17 18:11:19 +0100
commit8e5c5ae29692e5e8179b17f574d454fab0c90dda (patch)
tree9379436bce60ce7c272ea6984b11ee6c442f0757 /src/tabwindow
parentClosed Tabs page return, first bits (diff)
downloadrekonq-8e5c5ae29692e5e8179b17f574d454fab0c90dda.tar.xz
Closed tabs page, last bits (?)
Restore closed tabs on restart
Diffstat (limited to 'src/tabwindow')
-rw-r--r--src/tabwindow/tabwindow.cpp12
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);
+ }
}