summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-26 01:15:07 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-26 01:15:07 +0100
commit33962a25efb91befee681a9762330480f04db383 (patch)
tree20ed8bfb2f8b2973c060b9b5fa4cc3a2a3d9ab78 /src/mainview.cpp
parentThis simple commit is inspired from mr #97 (diff)
downloadrekonq-33962a25efb91befee681a9762330480f04db383.tar.xz
Revert "Simpler is better :)"
bacause it sometimes works worst :( This reverts commit 9f29a5eb7223ea2edd7a9f3ee39dd9285820affb.
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 9693bb69..e2f9094f 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -186,12 +186,15 @@ void MainView::updateTabBar()
{
if( ReKonfig::alwaysShowTabBar() )
{
- if (tabBar()->isHidden())
+ if (!isTabBarHidden())
{
- tabBar()->show();
- m_addTabButton->show();
+ if (tabBar()->isHidden())
+ {
+ tabBar()->show();
+ m_addTabButton->show();
+ }
+ updateTabButtonPosition();
}
- updateTabButtonPosition();
return;
}
@@ -200,7 +203,7 @@ void MainView::updateTabBar()
tabBar()->hide();
m_addTabButton->hide();
}
- else
+ else if( !isTabBarHidden() )
{
if ( tabBar()->isHidden() )
{