From 2b75a51e860cc452e0588b58fea72054750ab46c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 2 Jan 2012 11:53:12 +0100 Subject: Get sure tabbar is properly shown BUG: 290374 --- src/mainview.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mainview.cpp b/src/mainview.cpp index 008eda09..50fff2ac 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -143,7 +143,10 @@ void MainView::updateTabBar() if (ReKonfig::alwaysShowTabBar() || count() > 1) { // Get sure tabbar is well shown (and hided) during fullscreen navigation - MainWindow *w = qobject_cast(parent()); + // NOTE: don't ask me why, but it seems that using code like: + // MainWindow *w = qobject_cast(parent()); + // does NOT work here. So, I'm asking you: WHY??? + MainWindow *w = rApp->mainWindow(); if (w && !w->isFullScreen()) { if (tabBar()->isHidden()) -- cgit v1.2.1