summaryrefslogtreecommitdiff
path: root/src/tabwindow
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabwindow')
-rw-r--r--src/tabwindow/tabwidget.cpp3
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);