From c5a775f01f689a625a165ee6b2acd4896d7668d1 Mon Sep 17 00:00:00 2001 From: JJones780 Date: Tue, 26 Mar 2019 22:50:00 -0600 Subject: [PATCH] fixes #1016 "This document not yet saved" shown twice when loading recent document. --- src/control/Control.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/control/Control.cpp b/src/control/Control.cpp index 54b23f0b..59594def 100644 --- a/src/control/Control.cpp +++ b/src/control/Control.cpp @@ -2821,6 +2821,10 @@ bool Control::close(bool destroy, bool allowCancel) { return false; } + else + { + destroy = true; + } } if (!doc->getFilename().isEmpty()) @@ -2856,6 +2860,10 @@ bool Control::close(bool destroy, bool allowCancel) { return false; } + else + { + destroy = true; + } } }