summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-01-02 11:53:12 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-01-02 11:53:12 +0100
commit2b75a51e860cc452e0588b58fea72054750ab46c (patch)
tree82dd366806fc95c05508cdbc663a96c15afb92e6
parentClean up rekonq.kcfg (diff)
downloadrekonq-2b75a51e860cc452e0588b58fea72054750ab46c.tar.xz
Get sure tabbar is properly shown
BUG: 290374
-rw-r--r--src/mainview.cpp5
1 files changed, 4 insertions, 1 deletions
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<MainWindow *>(parent());
+ // NOTE: don't ask me why, but it seems that using code like:
+ // MainWindow *w = qobject_cast<MainWindow *>(parent());
+ // does NOT work here. So, I'm asking you: WHY???
+ MainWindow *w = rApp->mainWindow();
if (w && !w->isFullScreen())
{
if (tabBar()->isHidden())