]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.cpp
updated list of LyX translations
[lyx.git] / src / MenuBackend.cpp
index dce50f52d11a7259bc08c0c5d71b5305401ae91a..7865786ff3ff326297b4c0c1e704c8a5aeead262 100644 (file)
@@ -705,6 +705,10 @@ void expandToc(Menu & tomenu, Buffer const * buf)
                return;
        }
 
+       Buffer* cbuf = const_cast<Buffer*>(buf);
+       cbuf->tocBackend().update();
+       cbuf->structureChanged();
+
        // Add an entry for the master doc if this is a child doc
        Buffer const * const master = buf->getMasterBuffer();
        if (buf != master) {