]> git.lyx.org Git - features.git/commitdiff
Now we have disentangled writeSession() and closeWorkAreaAll(), we can release child...
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 19 Aug 2009 20:31:49 +0000 (20:31 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 19 Aug 2009 20:31:49 +0000 (20:31 +0000)
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

index fe9cb181094f96bae0d77301479121afc50fe028..60128969688d06eedf90a8c1a49a9ab93640c263 100644 (file)
@@ -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");