]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLabel.cpp
Remove dead code + whitespace
[lyx.git] / src / insets / InsetLabel.cpp
index 4fbc95dd5811aace08587c4b11837f58844a46f0..d78e2b4c7de09811a7d3883178e75e0adc52a688 100644 (file)
@@ -204,6 +204,13 @@ bool InsetLabel::getStatus(Cursor & cur, FuncRequest const & cmd,
        case LFUN_LABEL_COPY_AS_REFERENCE:
                enabled = true;
                break;
+       case LFUN_INSET_MODIFY:
+               if (cmd.getArg(0) == "changetype") {
+                       // this is handled by InsetCommand,
+                       // but not by InsetLabel.
+                       enabled = false;
+                       break;
+               }
        default:
                return InsetCommand::getStatus(cur, cmd, status);
        }