From 4461bbc42ec35060ec6b8054435dd9232425b094 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 3 Oct 2007 07:49:15 +0000 Subject: [PATCH] Fix toc widget on window switch. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20683 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index c3db0821b4..38292ac579 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -743,6 +743,8 @@ bool GuiViewBase::event(QEvent * e) BufferView & bv = wa->bufferView(); connectBufferView(bv); connectBuffer(bv.buffer()); + // The document structure might have changed in another view. + updateToc(); } return QMainWindow::event(e); -- 2.39.2