From c863a953b2abfa95a398777e3f4b6ca70446c5c2 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 19 Aug 2009 20:31:49 +0000 Subject: [PATCH] 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 --- src/Buffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.39.2