From: Juergen Spitzmueller Date: Mon, 24 Dec 2018 12:02:41 +0000 (+0100) Subject: When cancelling saving of a children, cancel the whole process. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=abac6ef57cfd00ce81ca835571c502a2b64c16df;p=features.git When cancelling saving of a children, cancel the whole process. Fixes remainder of #11405 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 8877bb327a..dcfba88c53 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; } } }