mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
add onoff support for "inset-modify changetype xxx" in include inset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30305 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2efcbb74d6
commit
4594b1425b
@ -302,10 +302,16 @@ bool InsetInclude::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
switch (cmd.action) {
|
||||
|
||||
case LFUN_INSET_EDIT:
|
||||
case LFUN_INSET_MODIFY:
|
||||
flag.setEnabled(true);
|
||||
return true;
|
||||
|
||||
case LFUN_INSET_MODIFY:
|
||||
if (cmd.getArg(0) == "changetype")
|
||||
return InsetCommand::getStatus(cur, cmd, flag);
|
||||
else
|
||||
flag.setEnabled(true);
|
||||
return true;
|
||||
|
||||
default:
|
||||
return InsetCommand::getStatus(cur, cmd, flag);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user