]> git.lyx.org Git - features.git/commitdiff
fullscreen tweaking.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 27 May 2008 13:30:40 +0000 (13:30 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 27 May 2008 13:30:40 +0000 (13:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24961 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 4dc004d0b8442aa5e38b18895ec29e2c8f61e933..620fd1989558f421565bfd3e0d6d44bb1c9ebaf1 100644 (file)
@@ -2013,10 +2013,9 @@ void GuiView::toggleFullScreen()
                setContentsMargins(0, 0, 0, 0);
 #endif
                setWindowState(windowState() ^ Qt::WindowFullScreen);
+               restoreLayout();
                menuBar()->show();
                statusBar()->show();
-               if (lyxrc.full_screen_toolbars)
-                       restoreLayout();
        } else {
                for (int i = 0; i != d.splitter_->count(); ++i)
                        d.tabWorkArea(i)->setFullScreen(true);