From 2965530483a0eb0d6c237c721e3594ae2e2a5689 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Thu, 16 Aug 2018 17:02:12 +0200 Subject: [PATCH] Fixed missing changed state when trash is emptied --- MacPass/MPDocument.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index 2ddb4db2..c91afc4e 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -923,6 +923,8 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou [self.undoManager removeAllActionsWithTarget:group]; } [self.trash clear]; + /* Update the change count to mark the document state as changed */ + [self updateChangeCount:NSChangeDone]; } #pragma mark -