diff options
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index de755c76..3b0f6b54 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -797,12 +797,19 @@ void MainWindow::viewTextSmaller() void MainWindow::viewFullScreen(bool makeFullScreen) { + setWidgetsVisible(!makeFullScreen); + KToggleFullScreenAction::setFullScreen(this, makeFullScreen); +} + + +void MainWindow::setWidgetsVisible(bool makeVisible) +{ // state flags static bool bookmarksToolBarFlag; static bool sidePanelFlag; static bool bookmarksPanelFlag; - if (makeFullScreen == true) + if (!makeVisible) { // save current state bookmarksToolBarFlag = m_bmBar->isHidden(); @@ -832,9 +839,7 @@ void MainWindow::viewFullScreen(bool makeFullScreen) sidePanel()->show(); if (!bookmarksPanelFlag) bookmarksPanel()->show(); - } - - KToggleFullScreenAction::setFullScreen(this, makeFullScreen); + } } |