From 9f29a5eb7223ea2edd7a9f3ee39dd9285820affb Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 24 Feb 2010 19:04:05 +0100 Subject: Simpler is better :) removed doubled check --- src/mainview.cpp | 13 +++++-------- 1 file 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() ) { -- cgit v1.2.1