mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
Merge branch 'issue_513_change_warning_dialog_hangs'
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user