]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
fix weird error message when a command is disabled ; fix switching buffer in xref...
[lyx.git] / src / lyxfunc.C
index 5ca26ab25748ad788cd2e22aa87d8b57d28eb4ae..ebdb24c6eb3c4857f37c58b7a5d505265ca69594 100644 (file)
@@ -357,6 +357,9 @@ FuncStatus LyXFunc::getStatus(kb_action action,
                setStatusMessage(N_("Unknown action"));
                return flag.unknown(true);
        }
+
+       // the default error message if we disable the command
+       setStatusMessage(N_("Command disabled"));
        
        // Check whether we need a buffer
        if (!lyxaction.funcHasFlag(action, LyXAction::NoBuffer)) {