]> git.lyx.org Git - lyx.git/commitdiff
Fix bug 4410 (http://bugzilla.lyx.org/show_bug.cgi?id=4410).
authorAbdelrazak Younes <younes@lyx.org>
Sat, 8 Dec 2007 16:22:05 +0000 (16:22 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 8 Dec 2007 16:22:05 +0000 (16:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22023 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp

index 93d1f19efa35aea22bccc437dd407036c136bd4b..108ba779fa3165bcb4174de28f8e75cfef8cfe45 100644 (file)
@@ -13,6 +13,8 @@
 
 #include "GuiDocument.h"
 
+#include "GuiView.h"
+
 #include "BranchList.h"
 #include "buffer_funcs.h"
 #include "Buffer.h"
@@ -1293,6 +1295,13 @@ void GuiDocument::apply(BufferParams & params)
 
        // Embedded files
        // FIXME
+
+       // GuiDocument is special because some change in there might affect other
+       // dialogs. It is then better to make sure that all dialogs are in sync
+       // with current document settings.
+       lyxview().updateBufferDependent(true);
+       lyxview().updateLayoutList();
+       lyxview().updateToolbars();
 }