From: Vincent van Ravesteijn Date: Wed, 19 Aug 2009 20:31:49 +0000 (+0000) Subject: Now we have disentangled writeSession() and closeWorkAreaAll(), we can release child... X-Git-Tag: 2.0.0~5643 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c863a953b2abfa95a398777e3f4b6ca70446c5c2;p=features.git Now we have disentangled writeSession() and closeWorkAreaAll(), we can release child buffers together with the master. This basically solves bug #6162 in trunk (this cannot be done in branch until we take measures to prevent dataloss when closing a master and dirty children). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31149 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index fe9cb18109..6012896968 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -318,7 +318,7 @@ Buffer::~Buffer() return; } - /*// loop over children + // loop over children Impl::BufferPositionMap::iterator it = d->children_positions.begin(); Impl::BufferPositionMap::iterator end = d->children_positions.end(); for (; it != end; ++it) { @@ -326,7 +326,7 @@ Buffer::~Buffer() // The child buffer might have been closed already. if (theBufferList().isLoaded(child)) theBufferList().releaseChild(this, child); - }*/ + } if (!isClean()) { docstring msg = _("Buffer had unsaved changes when destroyed!\n");