]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.cpp
oops.
[lyx.git] / src / insets / InsetBibitem.cpp
index 0fbc516240bb69c59ec8d5659482112f59c66169..d3a10ae63c645bb653a161109434dc75047e42ac 100644 (file)
@@ -122,6 +122,9 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
                        cur.noScreenUpdate();
                        break;
                }
+
+               cur.recordUndo();
+
                docstring const & old_key = params()["key"];
                docstring const & old_label = params()["label"];
                docstring label = p["label"];
@@ -334,13 +337,6 @@ void InsetBibitem::updateBuffer(ParIterator const & it, UpdateType utype)
        } else {
                autolabel_ = from_ascii("??");
        }
-       if (!buffer().isBibInfoCacheValid()) {
-               docstring const key = getParam("key");
-               BibTeXInfo keyvalmap(false);
-               keyvalmap.label(bibLabel());
-               keyvalmap[from_ascii("ref")] = it.paragraph().asString();
-               buffer().addBibTeXInfo(key, keyvalmap);
-       }
 }