diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index 89aa1569..2c62aaf0 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -265,7 +265,6 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou - (void)presentedItemDidChange { [super presentedItemDidChange]; - /* If we are locked we have the data written back to file - just revert */ if(self.encrypted) { [self revertDocumentToSaved:nil]; @@ -297,7 +296,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou self.fileChangeDialogOpen = NO; if(returnCode == NSAlertSecondButtonReturn) { - [self revertDocumentToSaved:nil]; + [self revertToContentsOfURL:self.fileURL ofType:self.fileType error:nil]; } }]; });