summaryrefslogtreecommitdiff
path: root/src/tabwindow
diff options
context:
space:
mode:
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);
+ }
}