This commit is contained in:
michael starke
2013-09-16 02:07:35 +02:00
parent dc84dd86e9
commit eeb6cfbe95

View File

@@ -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]]) {