From 130a14de54dec1b488c6eaecd60d1c08fc82b3d6 Mon Sep 17 00:00:00 2001 From: michael starke Date: Sat, 18 May 2013 01:50:09 +0200 Subject: [PATCH] Fixed crash that occurred while reopening a document after closing another one --- MacPass/MPEntryViewController.m | 2 ++ MacPass/MPInspectorTabViewController.m | 2 +- MacPass/MacPass-Info.plist | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index 2660661a..3d14c846 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -115,6 +115,8 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername"; } - (void)dealloc { + [[NSNotificationCenter defaultCenter] removeObserver:self]; + self.entryArrayController = nil; self.filteredEntries = nil; self.filterBar = nil; diff --git a/MacPass/MPInspectorTabViewController.m b/MacPass/MPInspectorTabViewController.m index 93e76d3e..fac03c54 100644 --- a/MacPass/MPInspectorTabViewController.m +++ b/MacPass/MPInspectorTabViewController.m @@ -110,7 +110,7 @@ NSLayoutConstraint *remove = [self isVisible] ? self.showConstraint : self.hideConstraint; [[self view] removeConstraint:remove]; [[self view] addConstraint:add]; - [[self view] layout]; + [[[self view] window] layoutIfNeeded]; } - (void)_updateContent { diff --git a/MacPass/MacPass-Info.plist b/MacPass/MacPass-Info.plist index 2904ff7d..e01e6ce5 100644 --- a/MacPass/MacPass-Info.plist +++ b/MacPass/MacPass-Info.plist @@ -46,7 +46,7 @@ CFBundleSignature ???? CFBundleVersion - 6E9 + 6EE LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright