summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-10 21:59:09 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-10 21:59:09 +0200
commitcfbfe4ba48c747772e86018df41f6970fc007b11 (patch)
tree6bafe57c475a724866afa0b807b22508f3be9d6f /src/mainview.cpp
parentWebkit -> WebKit (diff)
downloadrekonq-cfbfe4ba48c747772e86018df41f6970fc007b11.tar.xz
Session Management (restore on crash)
This is HEAVILY based on code from Lionel and Yoram branches. But this code behaves differently: it restores rekonq tabs (just) on crash. Thanks to Lionel suggestions, it seems "better" than my initial idea :) It is quite extensible. We need just to fix it better as possible and then manage its behaviour in newInstance code.. ;)
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index a12ec8f9..76684c31 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -40,6 +40,7 @@
#include "history.h"
#include "urlbar.h"
#include "webview.h"
+#include "sessionmanager.h"
// KDE Includes
#include <KUrl>
@@ -92,6 +93,9 @@ MainView::MainView(QWidget *parent)
setTabsClosable(true);
connect(m_tabBar, SIGNAL(tabCloseRequested(int)), this, SLOT(slotCloseTab(int)));
+
+ // Session Manager
+ connect (this,SIGNAL(tabsChanged()),Application::sessionManager(),SLOT(saveSession()));
}