]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetPhantom.cpp
Show the current type of Phantom in the Phantom context menu.
[features.git] / 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;