commit b57eb397315d24d9a393af5245aa4265c17b1dad
Author: Juergen Spitzmueller <[email protected]>
Date: Thu Mar 6 08:34:32 2014 +0100
Disable invalid inset-modify (#9019).
diff --git a/src/insets/InsetLabel.cpp b/src/insets/InsetLabel.cpp
index 4fbc95d..d78e2b4 100644
--- a/src/insets/InsetLabel.cpp
+++ b/src/insets/InsetLabel.cpp
@@ -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);
}