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/branches/BRANCH_2_0_X@38987 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-06-08 13:07:03 +00:00
parent 4585ff0f9d
commit 6ae9caf6b2

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