mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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:
parent
e224ef029b
commit
b5252b737f
@ -1727,7 +1727,12 @@ bool GuiView::closeBuffer(Buffer & buf, bool tolastopened)
|
|||||||
if (buf.masterBuffer() == &buf && tolastopened)
|
if (buf.masterBuffer() == &buf && tolastopened)
|
||||||
LyX::ref().session().lastOpened().add(buf.fileName());
|
LyX::ref().session().lastOpened().add(buf.fileName());
|
||||||
|
|
||||||
theBufferList().release(&buf);
|
if (buf.parent())
|
||||||
|
// Don't close child documents.
|
||||||
|
removeWorkArea(d.current_work_area_);
|
||||||
|
else
|
||||||
|
theBufferList().release(&buf);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user