diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-01-10 13:02:15 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-01-10 13:02:15 +0100 |
commit | 9fcacf1159afc01f6a7a39380ff837cba374d08a (patch) | |
tree | b7e7ce3b7ab541df548e4c171993147bc579b69b /src/mainwindow.cpp | |
parent | Protocol Handling fix (diff) | |
download | rekonq-9fcacf1159afc01f6a7a39380ff837cba374d08a.tar.xz |
Ronny's patch
Fix fullscreen mode behaviour
thanks :)
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index da4c31a9..8ad53315 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -813,16 +813,17 @@ void MainWindow::setWidgetsVisible(bool makeVisible) if (!makeVisible) { - // save current state - bookmarksToolBarFlag = m_bmBar->isHidden(); - m_bmBar->hide(); - - m_view->setTabBarHidden(true); + // save current state, if in windowed mode + if (!isFullScreen()) + { + bookmarksToolBarFlag = m_bmBar->isHidden(); + sidePanelFlag = sidePanel()->isHidden(); + bookmarksPanelFlag = bookmarksPanel()->isHidden(); + } - sidePanelFlag = sidePanel()->isHidden(); - sidePanel()->hide(); - - bookmarksPanelFlag = bookmarksPanel()->isHidden(); + m_bmBar->hide(); + m_view->setTabBarHidden(true); + sidePanel()->hide(); bookmarksPanel()->hide(); // hide main toolbar @@ -834,7 +835,7 @@ void MainWindow::setWidgetsVisible(bool makeVisible) m_mainBar->show(); m_view->setTabBarHidden(false); - // restore previous state + // restore state of windowed mode if (!bookmarksToolBarFlag) m_bmBar->show(); if (!sidePanelFlag) |