summaryrefslogtreecommitdiff
path: root/src/sessionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sessionmanager.cpp')
-rw-r--r--src/sessionmanager.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp
index adc6fcb3..5c93e2d0 100644
--- a/src/sessionmanager.cpp
+++ b/src/sessionmanager.cpp
@@ -34,7 +34,10 @@
#include "application.h"
#include "autosaver.h"
#include "tabhistory.h"
+
#include "tabwindow.h"
+#include "tabbar.h"
+
#include "webwindow.h"
#include "webpage.h"
@@ -97,6 +100,11 @@ int loadTabs(TabWindow *tw, QDomElement & window, bool useFirstTab)
{
tw->loadUrl(u, Rekonq::NewTab, &tabHistory);
}
+
+ if (tab.hasAttribute("pinned"))
+ {
+ tw->tabBar()->setTabData(tabNo, true);
+ }
}
return currentTab;
@@ -184,6 +192,10 @@ void SessionManager::save()
{
tab.setAttribute("currentTab", 1);
}
+ if (w.data()->tabBar()->tabData(tabNo).toBool()) // pinned tab info
+ {
+ tab.setAttribute("pinned", 1);
+ }
QByteArray history;
QDataStream historyStream(&history, QIODevice::ReadWrite);
historyStream << *(w.data()->webWindow(tabNo)->page()->history());