From c1d4bcbfd929a6d2ae68e4f8f6fc7977efd150b5 Mon Sep 17 00:00:00 2001 From: michael starke Date: Tue, 30 Aug 2016 19:02:51 +0200 Subject: [PATCH] cleaned up code --- MacPass/MPDocument.m | 2 +- MacPass/MPDocumentWindowController.m | 1 + MacPass/MPPasswordEditWindowController.m | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index 2b5e43e1..9b001bc5 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -115,7 +115,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou return YES; } -- (id)init { +- (instancetype)init { self = [super init]; if(self) { _didLockFile = NO; diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m index e8279c51..69cf4dc9 100644 --- a/MacPass/MPDocumentWindowController.m +++ b/MacPass/MPDocumentWindowController.m @@ -306,6 +306,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword); self.passwordEditWindowController.delegate = self; } [self.document addWindowController:self.passwordEditWindowController]; + [NSApp beginSheet:self.passwordEditWindowController.window modalForWindow:self.window modalDelegate:self diff --git a/MacPass/MPPasswordEditWindowController.m b/MacPass/MPPasswordEditWindowController.m index fea5cba1..2941ae22 100644 --- a/MacPass/MPPasswordEditWindowController.m +++ b/MacPass/MPPasswordEditWindowController.m @@ -31,7 +31,6 @@ - (id)initWithWindow:(NSWindow *)window { self = [super initWithWindow:window]; if(self){ - //_allowsEmptyPasswordOrKey = YES; _showPassword = NO; _hasValidPasswordOrKey = NO; }