diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-01-19 22:44:11 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-01-19 22:44:11 +0100 |
commit | 2fe3e35557dc5ac961dc40da9b5c635d2483a196 (patch) | |
tree | ecd525e16465babb083c9987f877e29118b76f98 | |
parent | Merge branch 'master' of git.kde.org:rekonq (diff) | |
download | rekonq-2fe3e35557dc5ac961dc40da9b5c635d2483a196.tar.xz |
This code fixes new tab button appearing on new window when tabbar is set hidden
(Always show tab bar = false)
This fix comes from a Felix Rohrbach idea. Thanks :)
-rw-r--r-- | src/mainview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index cbe862fb..699103a0 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -140,7 +140,9 @@ void MainView::updateTabButtonPosition() if (ButtonInCorner) { setCornerWidget(0); - m_addTabButton->show(); + // new window problem + if(count()>1) + m_addTabButton->show(); ButtonInCorner = false; } |