From 5f9f199756357b568b13522d27b456ace024e959 Mon Sep 17 00:00:00 2001 From: michael starke Date: Mon, 23 May 2016 14:52:47 +0200 Subject: [PATCH] using getter/setter instead of direct ivar --- MacPass/MPDocument.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index adbaaed4..3d1f99d0 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -248,14 +248,14 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey return; // Just metadata has changed } - if(_fileChangeDialogOpen) { + if(self.fileChangeDialogOpen) { return; // This alert is already being shown } /* Dispatch the alert to the main queue */ dispatch_async(dispatch_get_main_queue(), ^{ - _fileChangeDialogOpen = YES; + self.fileChangeDialogOpen = YES; NSAlert *alert = [[NSAlert alloc] init]; alert.alertStyle = NSWarningAlertStyle; @@ -265,7 +265,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey [alert addButtonWithTitle:NSLocalizedString(@"LOAD_CHANGES", @"Reopen the file!")]; [alert beginSheetModalForWindow:self.windowForSheet completionHandler:^(NSModalResponse returnCode) { - _fileChangeDialogOpen = NO; + self.fileChangeDialogOpen = NO; if(returnCode == NSAlertSecondButtonReturn) { [self revertDocumentToSaved:nil];