diff options
Diffstat (limited to 'src/sessionmanager.cpp')
-rw-r--r-- | src/sessionmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp index 4903360c..08f576a4 100644 --- a/src/sessionmanager.cpp +++ b/src/sessionmanager.cpp @@ -109,7 +109,8 @@ int loadTabs(TabWindow *tw, QDomElement & window, bool useFirstTab, bool justThe if (tabIsPinned) { tw->tabBar()->setTabData(tabNo, true); - tw->tabBar()->tabButton(tabNo, QTabBar::RightSide)->hide(); // NOTE: this is not good here: where is its proper place? + if (tw->tabBar()->tabButton(tabNo, QTabBar::RightSide)) + tw->tabBar()->tabButton(tabNo, QTabBar::RightSide)->hide(); // NOTE: this is not good here: where is its proper place? } } } |