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:
Jean-Marc Lasgouttes 2010-11-29 13:30:17 +00:00
parent 0180558f7d
commit f75569d08c

View File

@ -128,8 +128,11 @@ bool InsetERT::getStatus(Cursor & cur, FuncRequest const & cmd,
{
switch (cmd.action()) {
case LFUN_INSET_MODIFY:
if (cmd.getArg(0) == "ert") {
status.setEnabled(true);
return true;
}
//fall through
default:
return InsetCollapsable::getStatus(cur, cmd, status);