diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-24 19:04:05 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-24 19:04:05 +0100 |
commit | 9f29a5eb7223ea2edd7a9f3ee39dd9285820affb (patch) | |
tree | 3096f3f43ffec7221503613060176ffef4584335 /src/mainview.cpp | |
parent | Remember "Never for this site" urls (diff) | |
download | rekonq-9f29a5eb7223ea2edd7a9f3ee39dd9285820affb.tar.xz |
Simpler is better :)
removed doubled check
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 13 |
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() ) { |