diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-03-14 17:37:04 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-03-14 17:37:04 +0100 |
commit | 4c7fc6692b94c1239114801d07b59fd428a585f5 (patch) | |
tree | c4c9f3e91d47feed33b1e01ad7b692cdcf0d4601 /src/tabwindow | |
parent | Reverting changes in sslinfodialog as discussed with kdepepo. (diff) | |
download | rekonq-4c7fc6692b94c1239114801d07b59fd428a585f5.tar.xz |
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
Diffstat (limited to 'src/tabwindow')
-rw-r--r-- | src/tabwindow/tabwidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<RekonqWindow *>(parent()); @@ -398,8 +399,6 @@ void TabWidget::pageCreated(WebPage *page) void TabWidget::currentChanged(int newIndex) { - _lastCurrentTabIndex = newIndex; - _openedTabsCounter = 0; tabBar()->setTabHighlighted(newIndex, false); |