mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 16:22:21 +00:00
fixed #513 change warning dialog hangs on revert.
This commit is contained in:
@@ -266,7 +266,6 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
|||||||
|
|
||||||
- (void)presentedItemDidChange {
|
- (void)presentedItemDidChange {
|
||||||
[super presentedItemDidChange];
|
[super presentedItemDidChange];
|
||||||
|
|
||||||
/* If we are locked we have the data written back to file - just revert */
|
/* If we are locked we have the data written back to file - just revert */
|
||||||
if(self.encrypted) {
|
if(self.encrypted) {
|
||||||
[self revertDocumentToSaved:nil];
|
[self revertDocumentToSaved:nil];
|
||||||
@@ -298,7 +297,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
|||||||
self.fileChangeDialogOpen = NO;
|
self.fileChangeDialogOpen = NO;
|
||||||
|
|
||||||
if(returnCode == NSAlertSecondButtonReturn) {
|
if(returnCode == NSAlertSecondButtonReturn) {
|
||||||
[self revertDocumentToSaved:nil];
|
[self revertToContentsOfURL:self.fileURL ofType:self.fileType error:nil];
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user