Fix toc widget on window switch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20683 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-10-03 07:49:15 +00:00
parent a8cefbcce7
commit 4461bbc42e

View File

@ -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);