From 32a1f10910865f67df4ce7edc8ffaf31e0ee6152 Mon Sep 17 00:00:00 2001 From: michael starke Date: Mon, 27 Nov 2017 15:30:10 +0100 Subject: [PATCH] Mark document as changed after synchronization regardless of what has changed This fixes a potential data loss after quitting macpass on synchronzation. --- MacPass/MPDocument.m | 1 + 1 file changed, 1 insertion(+) diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index f7a4c022..9988b04b 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -367,6 +367,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou [self.tree synchronizeWithTree:otherTree options:KPKSynchronizationSynchronizeOption]; /* the key might have changed so update ours! */ //self.compositeKey = key; + [self updateChangeCount:NSChangeDone]; NSUserNotification *notification = [[NSUserNotification alloc] init]; notification.title = NSApp.applicationName; notification.informativeText = NSLocalizedString(@"AUTO_MERGE_NOTIFICATION_TEXT", @"Sucessfully merged external changes");