summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() )
{