From: Stefan Schimanski Date: Fri, 14 Mar 2008 23:26:22 +0000 (+0000) Subject: * dialog can only be shown via a GuiView up to now. This shouldn't be X-Git-Tag: 1.6.10~5636 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=40144c3f78675e8d31d731fd34e9e560d4795a70;p=features.git * 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 --- diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index 7b538c6c35..07807ac030 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -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;