]> git.lyx.org Git - features.git/commitdiff
Fix fullscreen & settings dialog. Very annoying one.
authorPavel Sanda <sanda@lyx.org>
Sat, 15 Nov 2008 16:33:02 +0000 (16:33 +0000)
committerPavel Sanda <sanda@lyx.org>
Sat, 15 Nov 2008 16:33:02 +0000 (16:33 +0000)
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

index a5c1c7a49024655ce8ca6c310b99c28bd2cab9d0..1a2e18de30c6c030c0e8d090b46b3a82d7010f4f 100644 (file)
@@ -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