]> git.lyx.org Git - features.git/commitdiff
When cancelling saving of a children, cancel the whole process.
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 24 Dec 2018 12:02:41 +0000 (13:02 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 24 Dec 2018 12:02:41 +0000 (13:02 +0100)
Fixes remainder of #11405

src/frontends/qt4/GuiView.cpp

index 8877bb327a0d334bfcd8abbd035f0e4813d3e38b..dcfba88c534960078fbdc4637d1ca12755ce8cf2 100644 (file)
@@ -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;
                        }
                }
        }