]> 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>
Tue, 25 Dec 2018 11:15:43 +0000 (12:15 +0100)
Fixes remainder of #11405

(cherry picked from commit 4d5120658579fbad3a19b76f9da7e044264f6c03)

src/frontends/qt4/GuiView.cpp

index fb213ff2bb5830a985863e7273269f57718093d4..1d0308ad6cdd43ee439415cdc71fbb7b22159c75 100644 (file)
@@ -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;
                        }
                }
        }