From 901a430f560c9401d2f389518ababf5360b1bd43 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 29 Dec 2011 10:59:14 +0100 Subject: Get sure tabbar is well shown (and hided) during fullscreen navigation --- src/mainview.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index c98e030a..5e616ff7 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -142,17 +142,21 @@ void MainView::updateTabBar() { if (ReKonfig::alwaysShowTabBar() || count() > 1) { - if (tabBar()->isHidden()) + // Get sure tabbar is well shown (and hided) during fullscreen navigation + MainWindow *w = qobject_cast(parent()); + if (w && !w->isFullScreen()) { - tabBar()->show(); - } + if (tabBar()->isHidden()) + { + tabBar()->show(); + } - // this to ensure tab button visibility also on new window creation - if (m_addTabButton->isHidden()) - { - m_addTabButton->show(); + // this to ensure tab button visibility also on new window creation + if (m_addTabButton->isHidden()) + { + m_addTabButton->show(); + } } - } else { -- cgit v1.2.1