mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
When cancelling saving of a children, cancel the whole process.
Fixes remainder of #11405
(cherry picked from commit 4d51206585
)
This commit is contained in:
parent
ad177dcf29
commit
a68e5b7774
@ -3033,6 +3033,11 @@ bool GuiView::closeBuffer(Buffer & buf)
|
||||
if (saveBufferIfNeeded(*child_buf, false)) {
|
||||
child_buf->removeAutosaveFile();
|
||||
theBufferList().release(child_buf);
|
||||
} else {
|
||||
// Saving of dirty children has been cancelled.
|
||||
// Cancel the whole process.
|
||||
success = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user