]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.cpp
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4910 by creating InsetText::addToToc().
[lyx.git] / src / insets / InsetInclude.cpp
index 878488262852d566b664e40b1b9fcadff0bdf466..c0f10af568b3508656ae8a40404674ace52596c5 100644 (file)
@@ -303,7 +303,8 @@ bool InsetInclude::getStatus(Cursor & cur, FuncRequest const & cmd,
        switch (cmd.action) {
 
        case LFUN_INSET_EDIT:
-               flag.enabled(true);
+       case LFUN_INSET_MODIFY:
+               flag.setEnabled(true);
                return true;
 
        default:
@@ -933,7 +934,7 @@ void InsetInclude::updateLabels(ParIterator const & it)
 
        InsetListingsParams const par(to_utf8(params()["lstparams"]));
        if (par.getParamValue("caption").empty()) {
-               listings_label_.clear();
+               listings_label_ = buffer().B_("Program Listing");
                return;
        }
        Buffer const & master = *buffer().masterBuffer();