From 49d03a2576f6a4925f574f8d4c23dab117bac752 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 18 Aug 2009 20:41:29 +0000 Subject: [PATCH] If we are in a closeEvent, we don't want to close all buffers, because these may live in another View. So, only close the WorkAreas in this view. For now, I stick to the convention that closing a buffer, will close it in all tabworkareas and all views. Therefore, when choosing File->Close All, we still close all buffers. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31126 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 36739dbc79..8986f7dfbc 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -547,7 +547,7 @@ void GuiView::closeEvent(QCloseEvent * close_event) // it can happen that this event arrives without selecting the view, // e.g. when clicking the close button on a background window. setFocus(); - if (!closeBufferAll(true)) { + if (!closeWorkAreaAll(true)) { closing_ = false; close_event->ignore(); return;