summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-01-19 22:44:11 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-01-19 22:44:11 +0100
commit2fe3e35557dc5ac961dc40da9b5c635d2483a196 (patch)
treeecd525e16465babb083c9987f877e29118b76f98 /src/mainview.cpp
parentMerge branch 'master' of git.kde.org:rekonq (diff)
downloadrekonq-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 :)
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp4
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;
}