]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDocument.cpp
Fix bug 4410 (http://bugzilla.lyx.org/show_bug.cgi?id=4410).
[lyx.git] / src / frontends / qt4 / GuiDocument.cpp
index f3a6888f8010ae968b5717e75aafd7a19f98d593..108ba779fa3165bcb4174de28f8e75cfef8cfe45 100644 (file)
@@ -13,6 +13,8 @@
 
 #include "GuiDocument.h"
 
+#include "GuiView.h"
+
 #include "BranchList.h"
 #include "buffer_funcs.h"
 #include "Buffer.h"
@@ -23,7 +25,7 @@
 #include "Encoding.h"
 #include "FloatPlacement.h"
 #include "FuncRequest.h"
-#include "gettext.h"
+#include "support/gettext.h"
 #include "GuiBranches.h"
 #include "Language.h"
 #include "LaTeXFeatures.h"
@@ -42,6 +44,8 @@
 
 #include "insets/InsetListingsParams.h"
 
+#include "support/FileName.h"
+#include "support/filetools.h"
 #include "support/lstrings.h"
 
 #include <boost/bind.hpp>
@@ -1291,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();
 }