]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetScript.cpp
Rename InsetXXX::contextMenu to InsetXXX::contextMenuName. Now this function doesn...
[lyx.git] / src / insets / InsetScript.cpp
index 514445a943b35acf742132ac8bce0b3fa84c6dce..9e729d5790eda42cf5b8a87f8a5fb4835c53a431 100644 (file)
@@ -214,6 +214,7 @@ void InsetScript::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        switch (cmd.action()) {
        case LFUN_INSET_MODIFY:
+               cur.recordUndoInset(ATOMIC_UNDO, this);
                string2params(to_utf8(cmd.argument()), params_);
                break;
        default:
@@ -422,7 +423,7 @@ docstring InsetScript::xhtml(XHTMLStream & xs, OutputParams const & runparams) c
 }
 
 
-docstring InsetScript::contextMenu(BufferView const &, int, int) const
+docstring InsetScript::contextMenuName() const
 {
        return from_ascii("context-script");
 }