mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
64d7a33a89
commit
49d03a2576
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user