mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Disable invalid inset-modify (#9019).
This commit is contained in:
parent
e86cdc4020
commit
b57eb39731
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user