mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
* dialog can only be shown via a GuiView up to now. This shouldn't be
the case for GuiView independent dialogs like about or prefs. But for now it is. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23735 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
83661da26a
commit
40144c3f78
@ -446,10 +446,9 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
|
||||
case LFUN_DIALOG_TOGGLE:
|
||||
case LFUN_DIALOG_SHOW:
|
||||
case LFUN_DIALOG_UPDATE:
|
||||
if (cmd.argument() == "prefs"
|
||||
|| cmd.argument() == "aboutlyx")
|
||||
enable = true;
|
||||
else if (lyx_view_)
|
||||
// FIXME: add special handling for about and prefs dialogs here
|
||||
// which do not depend on GuiView.
|
||||
if (lyx_view_)
|
||||
return lyx_view_->getStatus(cmd);
|
||||
else
|
||||
enable = false;
|
||||
|
Loading…
Reference in New Issue
Block a user