From 4c7fc6692b94c1239114801d07b59fd428a585f5 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 14 Mar 2013 17:37:04 +0100 Subject: Restore Session Manager updates on current tab changed && on window close. Lindsay, I probably "forgot" one your mail about Session Management NOT working properly (sorry). Hope this will fix it! Let me know :) CCMAIL: lindsay.mathieson@gmail.com --- src/tabwindow/tabwidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/tabwindow') diff --git a/src/tabwindow/tabwidget.cpp b/src/tabwindow/tabwidget.cpp index 9494fad4..d74f0778 100644 --- a/src/tabwindow/tabwidget.cpp +++ b/src/tabwindow/tabwidget.cpp @@ -188,6 +188,7 @@ void TabWidget::init() _addTabButton->setToolButtonStyle(Qt::ToolButtonIconOnly); connect(this, SIGNAL(currentChanged(int)), this, SLOT(currentChanged(int))); + connect(this, SIGNAL(currentChanged(int)), SessionManager::self(), SLOT(saveSession())); // ---------------------------------------------------------------------------------------------- RekonqWindow *rw = qobject_cast(parent()); @@ -398,8 +399,6 @@ void TabWidget::pageCreated(WebPage *page) void TabWidget::currentChanged(int newIndex) { - _lastCurrentTabIndex = newIndex; - _openedTabsCounter = 0; tabBar()->setTabHighlighted(newIndex, false); -- cgit v1.2.1