diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-11-26 17:20:15 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:06 +0100 |
commit | 9bf2bbe9bb14425ef228c8e1689bbd14935cac48 (patch) | |
tree | db8ff5863de372d77090a877bb7a0589a01eb1d7 /src/sessionmanager.cpp | |
parent | Add an home page tab when rekonq is started with some pinned tabs (diff) | |
download | rekonq-9bf2bbe9bb14425ef228c8e1689bbd14935cac48.tar.xz |
Fix tabs moves when some of them are pinned
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? } } } |