mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +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:
|
case LFUN_LABEL_COPY_AS_REFERENCE:
|
||||||
enabled = true;
|
enabled = true;
|
||||||
break;
|
break;
|
||||||
|
case LFUN_INSET_MODIFY:
|
||||||
|
if (cmd.getArg(0) == "changetype") {
|
||||||
|
// this is handled by InsetCommand,
|
||||||
|
// but not by InsetLabel.
|
||||||
|
enabled = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return InsetCommand::getStatus(cur, cmd, status);
|
return InsetCommand::getStatus(cur, cmd, status);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user