Don't close child documents.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25288 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-17 14:53:08 +00:00
parent e224ef029b
commit b5252b737f

View File

@ -1727,7 +1727,12 @@ bool GuiView::closeBuffer(Buffer & buf, bool tolastopened)
if (buf.masterBuffer() == &buf && tolastopened)
LyX::ref().session().lastOpened().add(buf.fileName());
if (buf.parent())
// Don't close child documents.
removeWorkArea(d.current_work_area_);
else
theBufferList().release(&buf);
return true;
}