Disable invalid inset-modify (#9019).

This commit is contained in:
Juergen Spitzmueller 2014-03-06 08:34:32 +01:00
parent e86cdc4020
commit b57eb39731

View 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);
}