]> git.lyx.org Git - features.git/commitdiff
Show the current type of Phantom in the Phantom context menu.
authorVincent van Ravesteijn <vfr@lyx.org>
Fri, 10 Apr 2009 17:21:40 +0000 (17:21 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Fri, 10 Apr 2009 17:21:40 +0000 (17:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29190 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetPhantom.cpp

index 3ba99b11332a3f6a1a48d258a74f159785217e0c..2be07faf9ce43d7bcde13887e8875e1ec741b3a3 100644 (file)
@@ -285,10 +285,15 @@ bool InsetPhantom::getStatus(Cursor & cur, FuncRequest const & cmd,
        switch (cmd.action) {
 
        case LFUN_INSET_MODIFY:
-       case LFUN_INSET_SETTINGS:
+               if (cmd.getArg(0) == "phantom") {
+                       InsetPhantomParams params;
+                       string2params(to_utf8(cmd.argument()), params);
+                       flag.setOnOff(params_.type == params.type);
+               }
                flag.setEnabled(true);
                return true;
 
+       case LFUN_INSET_SETTINGS:
        case LFUN_INSET_DIALOG_UPDATE:
                flag.setEnabled(true);
                return true;