From a68e5b777487b495feeefa53700834ecec6ec196 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 24 Dec 2018 13:02:41 +0100 Subject: [PATCH] When cancelling saving of a children, cancel the whole process. Fixes remainder of #11405 (cherry picked from commit 4d5120658579fbad3a19b76f9da7e044264f6c03) --- src/frontends/qt4/GuiView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index fb213ff2bb..1d0308ad6c 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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; } } } -- 2.39.5