summaryrefslogtreecommitdiff
path: root/src/sessionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sessionmanager.cpp')
-rw-r--r--src/sessionmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp
index 58e9f19e..4903360c 100644
--- a/src/sessionmanager.cpp
+++ b/src/sessionmanager.cpp
@@ -126,6 +126,8 @@ bool areTherePinnedTabs(QDomElement & window)
{
QDomElement tab = window.elementsByTagName("tab").at(tabNo).toElement();
b = tab.hasAttribute("pinned");
+ if (b)
+ return true;
}
return b;
@@ -276,9 +278,9 @@ bool SessionManager::restoreJustThePinnedTabs()
continue;
done = true;
- TabWindow *tw = rApp->newTabWindow();
+ TabWindow *tw = rApp->newTabWindow(false);
- int currentTab = loadTabs(tw, window, true, true);
+ int currentTab = loadTabs(tw, window, false, true);
tw->setCurrentIndex(currentTab);
}