From 25079068ea4f77dfa12b8d8f56861f8396be5e72 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sat, 15 Nov 2008 16:33:02 +0000 Subject: [PATCH] Fix fullscreen & settings dialog. Very annoying one. http://bugzilla.lyx.org/show_bug.cgi?id=5274 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27460 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index a5c1c7a490..1a2e18de30 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1974,6 +1974,11 @@ bool GuiView::dispatch(FuncRequest const & cmd) data = bv->cursor().getEncoding()->name(); if (!data.empty()) showDialog("symbols", data); + // bug 5274 + } else if (name == "prefs" && isFullScreen()) { + FuncRequest fr(LFUN_INSET_INSERT, "fullscreen"); + lfunUiToggle(fr); + showDialog("prefs", data); } else showDialog(name, data); break; @@ -2142,6 +2147,8 @@ void GuiView::toggleFullScreen() menuBar()->show(); statusBar()->show(); } else { + // bug 5274 + hideDialogs("prefs", 0); for (int i = 0; i != d.splitter_->count(); ++i) d.tabWorkArea(i)->setFullScreen(true); #if QT_VERSION >= 0x040300