From 4fc79439ad6be5d6a24c29285abbf750b9961c5c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 3 Oct 2007 08:03:01 +0000 Subject: [PATCH] Add some more updates on window switch. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20684 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 38292ac579..0b0e9f3c3d 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -738,13 +738,17 @@ bool GuiViewBase::event(QEvent * e) case QEvent::WindowActivate: if (d.tab_widget_->count()) { - GuiWorkArea * wa = dynamic_cast(d.tab_widget_->currentWidget()); + GuiWorkArea * wa = dynamic_cast( + d.tab_widget_->currentWidget()); BOOST_ASSERT(wa); BufferView & bv = wa->bufferView(); connectBufferView(bv); connectBuffer(bv.buffer()); - // The document structure might have changed in another view. + // The document structure, name and dialogs might have + // changed in another view. updateToc(); + updateWindowTitle(); + getDialogs().updateBufferDependent(true); } return QMainWindow::event(e); -- 2.39.2