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
This commit is contained in:
Vincent van Ravesteijn 2009-08-18 20:41:29 +00:00
parent 64d7a33a89
commit 49d03a2576

View File

@ -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;