diff options
-rw-r--r-- | src/mainview.cpp | 13 |
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() ) { |