]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.cpp
Keep dialog connected to cross-ref inset after Apply.
[lyx.git] / src / TocBackend.cpp
index d9ed95767a0de1ae426687473bd7e947a243de96..b3a36f1dd2f6100ba08d6827147bdedf702cf7ba 100644 (file)
@@ -143,7 +143,7 @@ shared_ptr<Toc> TocBackend::toc(string const & type)
 
 TocBuilder & TocBackend::builder(string const & type)
 {
-       auto p = make_unique<TocBuilder>(toc(type));
+       auto p = lyx::make_unique<TocBuilder>(toc(type));
        return * builders_.insert(make_pair(type, move(p))).first->second;
 }
 
@@ -155,6 +155,9 @@ TocBuilder & TocBackend::builder(string const & type)
 // all TOCs.
 bool TocBackend::updateItem(DocIterator const & dit_in) const
 {
+       if (dit_in.buffer() && dit_in.buffer()->isInternal())
+               return false;
+
        // we need a text
        DocIterator dit = dit_in.getInnerText();