diff --git a/MacPass/Base.lproj/DatabaseSettingsWindow.xib b/MacPass/Base.lproj/DatabaseSettingsWindow.xib index a62fb99d..18d0c5e9 100644 --- a/MacPass/Base.lproj/DatabaseSettingsWindow.xib +++ b/MacPass/Base.lproj/DatabaseSettingsWindow.xib @@ -51,10 +51,10 @@ - + - + - + diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m index e3498b21..dc042a73 100644 --- a/MacPass/MPDocumentWindowController.m +++ b/MacPass/MPDocumentWindowController.m @@ -293,7 +293,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword); if(!self.fixAutotypeWindowController) { self.fixAutotypeWindowController = [[MPFixAutotypeWindowController alloc] init]; } - [self.document addWindowController:self.fixAutotypeWindowController]; + self.fixAutotypeWindowController.document = self.document; [self.fixAutotypeWindowController.window makeKeyAndOrderFront:sender]; } diff --git a/MacPass/MPFixAutotypeWindowController.m b/MacPass/MPFixAutotypeWindowController.m index fbd59313..6fb21a5c 100644 --- a/MacPass/MPFixAutotypeWindowController.m +++ b/MacPass/MPFixAutotypeWindowController.m @@ -68,7 +68,7 @@ NSString *const kMPIconCell = @"IconCell"; - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; - [self.window orderOut:self]; + [self.window performClose:self]; }