]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.cpp
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4910 by creating InsetText::addToToc().
[lyx.git] / src / insets / InsetListings.cpp
index 94909a054a1efbda3af5006cb43cf5a62e7a4403..a2cb9851a40148092aa1b67baa144682e04a0c6a 100644 (file)
@@ -231,10 +231,10 @@ bool InsetListings::getStatus(Cursor & cur, FuncRequest const & cmd,
        switch (cmd.action) {
                case LFUN_INSET_MODIFY:
                case LFUN_INSET_DIALOG_UPDATE:
-                       status.enabled(true);
+                       status.setEnabled(true);
                        return true;
                case LFUN_CAPTION_INSERT:
-                       status.enabled(!params().isInline());
+                       status.setEnabled(!params().isInline());
                        return true;
                default:
                        return InsetCollapsable::getStatus(cur, cmd, status);