]> git.lyx.org Git - lyx.git/commitdiff
Don't close the buffer when it is a child.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 18 Aug 2009 00:04:19 +0000 (00:04 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 18 Aug 2009 00:04:19 +0000 (00:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31109 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index f403cef31b525e98fd16f8d70daffba6884ec0e5..5720b6af2e052ab605636611bfa9dc8278f94e61 100644 (file)
@@ -1903,7 +1903,8 @@ bool GuiView::hideWorkArea(GuiWorkArea * wa)
 
 bool GuiView::closeWorkArea(GuiWorkArea * wa)
 {
-       return closeWorkArea(wa, true);
+       Buffer & buf = wa->bufferView().buffer();
+       return closeWorkArea(wa, !buf.parent());
 }