* 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:
Stefan Schimanski 2008-03-14 23:26:22 +00:00
parent 83661da26a
commit 40144c3f78

View File

@ -446,10 +446,9 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
case LFUN_DIALOG_TOGGLE: case LFUN_DIALOG_TOGGLE:
case LFUN_DIALOG_SHOW: case LFUN_DIALOG_SHOW:
case LFUN_DIALOG_UPDATE: case LFUN_DIALOG_UPDATE:
if (cmd.argument() == "prefs" // FIXME: add special handling for about and prefs dialogs here
|| cmd.argument() == "aboutlyx") // which do not depend on GuiView.
enable = true; if (lyx_view_)
else if (lyx_view_)
return lyx_view_->getStatus(cmd); return lyx_view_->getStatus(cmd);
else else
enable = false; enable = false;