]> git.lyx.org Git - lyx.git/commitdiff
Fix context menu of InsetMathRef
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 1 Apr 2024 15:59:56 +0000 (17:59 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 1 Apr 2024 15:59:56 +0000 (17:59 +0200)
src/mathed/InsetMathRef.cpp

index b70b7eae5e7b6c17c64ec2bc4bfc2ca834dbd004..ad2e499167d37d69686d31ff972a28521d31e319 100644 (file)
@@ -164,6 +164,10 @@ bool InsetMathRef::getStatus(Cursor & cur, FuncRequest const & cmd,
        switch (cmd.action()) {
        // we handle these
        case LFUN_INSET_MODIFY:
+               if (cmd.getArg(0) == "changetype")
+                       status.setOnOff(from_ascii(cmd.getArg(1)) == commandname());
+               status.setEnabled(true);
+               return true;
        case LFUN_INSET_DIALOG_UPDATE:
        case LFUN_INSET_SETTINGS:
        case LFUN_MOUSE_RELEASE: