]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.cpp
InsetTabular.cpp: fix #6585 also for wrapped floats - thanks Vincent
[lyx.git] / src / insets / InsetNote.cpp
index 189c290791b9a2470f50045457fa97a23c323e05..0e76114b02831c3196beefb87d73e5a04c8f1917 100644 (file)
@@ -176,6 +176,9 @@ void InsetNote::doDispatch(Cursor & cur, FuncRequest & cmd)
        case LFUN_INSET_MODIFY:
                string2params(to_utf8(cmd.argument()), params_);
                setButtonLabel();
+               // what we really want here is a TOC update, but that means
+               // a full buffer update
+               cur.forceBufferUpdate();
                break;
 
        case LFUN_INSET_DIALOG_UPDATE:
@@ -224,7 +227,7 @@ void InsetNote::addToToc(DocIterator const & cpit)
        docstring str;
        str = notetranslator_loc().find(params_.type) + from_ascii(": ")
                + text().getPar(0).asString();
-       toc.push_back(TocItem(pit, 0, str));
+       toc.push_back(TocItem(pit, 0, str, toolTipText()));
        // Proceed with the rest of the inset.
        InsetCollapsable::addToToc(cpit);
 }