mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +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,8 +128,11 @@ bool InsetERT::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
{
|
{
|
||||||
switch (cmd.action()) {
|
switch (cmd.action()) {
|
||||||
case LFUN_INSET_MODIFY:
|
case LFUN_INSET_MODIFY:
|
||||||
|
if (cmd.getArg(0) == "ert") {
|
||||||
status.setEnabled(true);
|
status.setEnabled(true);
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
//fall through
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return InsetCollapsable::getStatus(cur, cmd, status);
|
return InsetCollapsable::getStatus(cur, cmd, status);
|
||||||
|
Loading…
Reference in New Issue
Block a user