mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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
This commit is contained in:
parent
f9f5c3baa5
commit
25079068ea
@ -1974,6 +1974,11 @@ bool GuiView::dispatch(FuncRequest const & cmd)
|
|||||||
data = bv->cursor().getEncoding()->name();
|
data = bv->cursor().getEncoding()->name();
|
||||||
if (!data.empty())
|
if (!data.empty())
|
||||||
showDialog("symbols", data);
|
showDialog("symbols", data);
|
||||||
|
// bug 5274
|
||||||
|
} else if (name == "prefs" && isFullScreen()) {
|
||||||
|
FuncRequest fr(LFUN_INSET_INSERT, "fullscreen");
|
||||||
|
lfunUiToggle(fr);
|
||||||
|
showDialog("prefs", data);
|
||||||
} else
|
} else
|
||||||
showDialog(name, data);
|
showDialog(name, data);
|
||||||
break;
|
break;
|
||||||
@ -2142,6 +2147,8 @@ void GuiView::toggleFullScreen()
|
|||||||
menuBar()->show();
|
menuBar()->show();
|
||||||
statusBar()->show();
|
statusBar()->show();
|
||||||
} else {
|
} else {
|
||||||
|
// bug 5274
|
||||||
|
hideDialogs("prefs", 0);
|
||||||
for (int i = 0; i != d.splitter_->count(); ++i)
|
for (int i = 0; i != d.splitter_->count(); ++i)
|
||||||
d.tabWorkArea(i)->setFullScreen(true);
|
d.tabWorkArea(i)->setFullScreen(true);
|
||||||
#if QT_VERSION >= 0x040300
|
#if QT_VERSION >= 0x040300
|
||||||
|
Loading…
Reference in New Issue
Block a user