]> git.lyx.org Git - lyx.git/commitdiff
Update the modules after we make the document class. This will ensure
authorRichard Heck <rgheck@comcast.net>
Sun, 12 Oct 2008 15:29:54 +0000 (15:29 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 12 Oct 2008 15:29:54 +0000 (15:29 +0000)
that we get any new default modules on board.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26866 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp

index dcc118de19c589df76857ec6bb5f3a99916f1672..355d1d91fc1b354ad947201e99d4b11ed6e293ab 100644 (file)
@@ -1355,8 +1355,8 @@ void GuiDocument::classChanged()
        // 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();
        bp_.makeDocumentClass();
+       updateSelectedModules();
        paramsToDialog(bp_);
 }