mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
fix #6930: ERT inset should not act on INSET_MODIFY requests directed to someone else
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36592 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0180558f7d
commit
f75569d08c
@ -128,9 +128,12 @@ bool InsetERT::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
{
|
||||
switch (cmd.action()) {
|
||||
case LFUN_INSET_MODIFY:
|
||||
status.setEnabled(true);
|
||||
return true;
|
||||
|
||||
if (cmd.getArg(0) == "ert") {
|
||||
status.setEnabled(true);
|
||||
return true;
|
||||
}
|
||||
//fall through
|
||||
|
||||
default:
|
||||
return InsetCollapsable::getStatus(cur, cmd, status);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user