summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-24 19:04:05 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-24 19:04:05 +0100
commit9f29a5eb7223ea2edd7a9f3ee39dd9285820affb (patch)
tree3096f3f43ffec7221503613060176ffef4584335
parentRemember "Never for this site" urls (diff)
downloadrekonq-9f29a5eb7223ea2edd7a9f3ee39dd9285820affb.tar.xz
Simpler is better :)
removed doubled check
-rw-r--r--src/mainview.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index e2f9094f..9693bb69 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -186,15 +186,12 @@ void MainView::updateTabBar()
{
if( ReKonfig::alwaysShowTabBar() )
{
- if (!isTabBarHidden())
+ if (tabBar()->isHidden())
{
- if (tabBar()->isHidden())
- {
- tabBar()->show();
- m_addTabButton->show();
- }
- updateTabButtonPosition();
+ tabBar()->show();
+ m_addTabButton->show();
}
+ updateTabButtonPosition();
return;
}
@@ -203,7 +200,7 @@ void MainView::updateTabBar()
tabBar()->hide();
m_addTabButton->hide();
}
- else if( !isTabBarHidden() )
+ else
{
if ( tabBar()->isHidden() )
{