When cancelling saving of a children, cancel the whole process.

Fixes remainder of #11405

(cherry picked from commit 4d51206585)
This commit is contained in:
Juergen Spitzmueller 2018-12-24 13:02:41 +01:00
parent ad177dcf29
commit a68e5b7774

View 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;
}
}
}