]> git.lyx.org Git - lyx.git/commitdiff
Add some more updates on window switch.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 3 Oct 2007 08:03:01 +0000 (08:03 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 3 Oct 2007 08:03:01 +0000 (08:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20684 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 38292ac579a9030d9c25986082cf68932c8c6a58..0b0e9f3c3d49cdf4f93d38e2d8a9cd67b2ac026a 100644 (file)
@@ -738,13 +738,17 @@ bool GuiViewBase::event(QEvent * e)
 
        case QEvent::WindowActivate:
                if (d.tab_widget_->count()) {
-                       GuiWorkArea * wa = dynamic_cast<GuiWorkArea *>(d.tab_widget_->currentWidget());
+                       GuiWorkArea * wa = dynamic_cast<GuiWorkArea *>(
+                               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);