]> git.lyx.org Git - features.git/commitdiff
add onoff support for "inset-modify changetype xxx" in include inset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 29 Jun 2009 12:41:43 +0000 (12:41 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 29 Jun 2009 12:41:43 +0000 (12:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30305 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetInclude.cpp

index 2a8fdf7a599af796f52b3e22f4944576198248a1..7d6a2542e6204458e3e17bf4dbcac5f98fd14ed6 100644 (file)
@@ -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);
        }