]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #7622. We have to show the error list after we set the buffer,
authorRichard Heck <rgheck@comcast.net>
Wed, 8 Jun 2011 13:04:30 +0000 (13:04 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 8 Jun 2011 13:04:30 +0000 (13:04 +0000)
because that is what creates the GuiDelegate.

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

src/frontends/qt4/GuiView.cpp

index 90ed2fbe36f59f4593fac24bd08eb5724e2cbc43..3cfc5879c60c079579352bb985932f74053b1185 100644 (file)
@@ -1895,8 +1895,8 @@ Buffer * GuiView::loadDocument(FileName const & filename, bool tolastfiles)
                return 0;
        }
 
-       newBuffer->errors("Parse");
        setBuffer(newBuffer);
+       newBuffer->errors("Parse");
 
        if (tolastfiles)
                theSession().lastFiles().add(filename);