]> git.lyx.org Git - lyx.git/blobdiff - src/ModuleList.cpp
Fix compilation on win
[lyx.git] / src / ModuleList.cpp
index 7efd0cdd925389c669edc8068bf52e09ead936ca..4127c4d39c27390806b7d0d66ce351f4a1c70531 100644 (file)
@@ -112,7 +112,7 @@ public:
 
 
 //Much of this is borrowed from LayoutFileList::read()
-bool ModuleList::load()
+bool ModuleList::read()
 {
        FileName const real_file = libFileSearch("", "lyxmodules.lst");
        LYXERR(Debug::TCLASS, "Reading modules from `" << real_file << '\'');
@@ -154,7 +154,7 @@ bool ModuleList::load()
                                break;
                        string const fname = lex.getString();
                        LYXERR(Debug::TCLASS, "Filename: " << fname);
-                       if (!lex.next())
+                       if (!lex.next(true))
                                break;
                        string const desc = lex.getString();
                        LYXERR(Debug::TCLASS, "Description: " << desc);