Mark document as changed after synchronization regardless of what has changed

This fixes a potential data loss after quitting macpass on synchronzation.
This commit is contained in:
michael starke
2017-11-27 15:30:10 +01:00
parent 6207cc3e11
commit 32a1f10910

View File

@@ -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");