From eeb6cfbe958504d1b6f817d52e4686236ecb0e1b Mon Sep 17 00:00:00 2001 From: michael starke Date: Mon, 16 Sep 2013 02:07:35 +0200 Subject: [PATCH] Fixed #86 --- MacPass/MPEntryViewController.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index b6a82afa..04993de2 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -278,10 +278,9 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell"; #pragma mark Notifications - (void)_didChangeCurrentItem:(NSNotification *)notification { MPDocument *document = [notification object]; - + if(!document.selectedGroup) { - [self.entryArrayController unbind:NSContentArrayBinding]; - [self.entryArrayController setContent:nil]; + /* No group, this only can happen in filtering, just return */ return; } /* @@ -289,7 +288,7 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell"; */ if(document.selectedItem == document.selectedGroup) { /* - If we reselct the group, or just another group + If we reselect the group, or just another group we clear the filter and bind to the new selected group */ if([self _showsFilterBar] && ![document.selectedItem isKindOfClass:[KPKEntry class]]) {