commit 4d5120658579fbad3a19b76f9da7e044264f6c03
Author: Juergen Spitzmueller <[email protected]>
Date: Mon Dec 24 13:02:41 2018 +0100
When cancelling saving of a children, cancel the whole process.
Fixes remainder of #11405
---
src/frontends/qt4/GuiView.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index 8877bb3..dcfba88 100644
--- a/src/frontends/qt4/GuiView.cpp
+++ b/src/frontends/qt4/GuiView.cpp
@@ -3083,6 +3083,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;
}
}
}