Fix bug #7622. We have to show the error list after we set the buffer,

because that is what creates the GuiDelegate.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38985 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-06-08 13:04:30 +00:00
parent 4201a465f0
commit 390990af6d

View 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);