]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDocument.cpp
Move the default module loading from makeDocumentClass() to setBaseClass().
[lyx.git] / src / frontends / qt4 / GuiDocument.cpp
index 15b51d3cf49d083d5e01437607338f9160680b0d..c5be6ef4e5fdf3516114001065517c80627f9096 100644 (file)
@@ -1323,6 +1323,11 @@ void GuiDocument::classChanged()
                bp_.useClassDefaults();
                paramsToDialog(bp_);
        }
+       // FIXME There's a little bug here connected with auto_reset, namely,
+       // that, if the preceding is skipped and the user has changed the
+       // modules before changing the class, those changes will be lost on
+       // update. But maybe that's what we want?
+       updateSelectedModules();
 }