X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FMenuBackend.cpp;h=7865786ff3ff326297b4c0c1e704c8a5aeead262;hb=38a3692a0fce8b0531cef794a08d179e9e33ac33;hp=dce50f52d11a7259bc08c0c5d71b5305401ae91a;hpb=36481c274467f5e64cdef6f735592c13da649a41;p=lyx.git diff --git a/src/MenuBackend.cpp b/src/MenuBackend.cpp index dce50f52d1..7865786ff3 100644 --- a/src/MenuBackend.cpp +++ b/src/MenuBackend.cpp @@ -705,6 +705,10 @@ void expandToc(Menu & tomenu, Buffer const * buf) return; } + Buffer* cbuf = const_cast(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) {