]> git.lyx.org Git - features.git/commitdiff
* dialog can only be shown via a GuiView up to now. This shouldn't be
authorStefan Schimanski <sts@lyx.org>
Fri, 14 Mar 2008 23:26:22 +0000 (23:26 +0000)
committerStefan Schimanski <sts@lyx.org>
Fri, 14 Mar 2008 23:26:22 +0000 (23:26 +0000)
  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

src/LyXFunc.cpp

index 7b538c6c3526dae2c2ad7fccaa52f0b1320574c9..07807ac030341345878b64d9f133f84b0b9615c2 100644 (file)
@@ -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;