summaryrefslogtreecommitdiff
path: root/src/webwindow/webwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webwindow/webwindow.cpp')
-rw-r--r--src/webwindow/webwindow.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index 1225fb07..da7a1bc5 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -40,6 +40,7 @@
#include "iconmanager.h"
#include "syncmanager.h"
#include "useragentmanager.h"
+#include "sessionmanager.h"
#include "webpage.h"
#include "webtab.h"
@@ -279,6 +280,15 @@ void WebWindow::setupActions()
actionCollection()->addAction(QL1S("open_location"), a);
connect(a, SIGNAL(triggered(bool)) , this, SLOT(openLocation()));
+ // User sessions management
+ a = new KAction(KIcon("document-save"), i18n("&Save Session"), this);
+ actionCollection()->addAction(QL1S("session_save"), a);
+ connect(a, SIGNAL(triggered(bool)), SessionManager::self(), SLOT(saveYourSession()));
+
+ a = new KAction(KIcon("view-choose"), i18n("&Manage Session"), this);
+ actionCollection()->addAction(QL1S("session_manage"), a);
+ connect(a, SIGNAL(triggered(bool)), SessionManager::self(), SLOT(restoreYourSession()));
+
// ===== Tools Actions =================================
a = new KAction(i18n("View Page S&ource"), this);
a->setIcon(KIcon("application-xhtml+xml"));