diff --git a/MacPass/Base.lproj/EntryInspectorView.xib b/MacPass/Base.lproj/EntryInspectorView.xib index 44918b5c..ee87a692 100644 --- a/MacPass/Base.lproj/EntryInspectorView.xib +++ b/MacPass/Base.lproj/EntryInspectorView.xib @@ -1,5 +1,5 @@ - + @@ -448,7 +448,7 @@ - + @@ -681,7 +681,7 @@ - + @@ -930,7 +930,7 @@ - + diff --git a/MacPass/EntryView.xib b/MacPass/EntryView.xib index e8881fd3..ecd3953e 100644 --- a/MacPass/EntryView.xib +++ b/MacPass/EntryView.xib @@ -1,8 +1,8 @@ - + - + diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index bb91240c..9b8184ae 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -410,6 +410,10 @@ NSString *const _MPTableSecurCellView = @"PasswordCell"; } - (void)_didAddItem:(NSNotification *)notification { + MPDocument *document = notification.object; + if(document.hasSearch) { + return; // Search should not react to new Entries as it's displaying search results + } NSDictionary *dict = notification.userInfo; KPKEntry *entry = dict[MPDocumentEntryKey]; NSUInteger row = [self.entryArrayController.arrangedObjects indexOfObject:entry]; @@ -424,7 +428,7 @@ NSString *const _MPTableSecurCellView = @"PasswordCell"; self.filteredEntries = result; [self.entryArrayController unbind:NSContentArrayBinding]; [self.entryArrayController bind:NSContentArrayBinding toObject:self withKeyPath:NSStringFromSelector(@selector(filteredEntries)) options:nil]; - [[self.entryTable tableColumnWithIdentifier:MPEntryTableParentColumnIdentifier] setHidden:NO]; + [self.entryTable tableColumnWithIdentifier:MPEntryTableParentColumnIdentifier].hidden = NO; } @@ -445,7 +449,7 @@ NSString *const _MPTableSecurCellView = @"PasswordCell"; } - (void)_didUnlockDatabase:(NSNotification *)notificiation { - MPDocument *document = [[self windowController] document]; + MPDocument *document = self.windowController.document; /* If the document was locked and unlocked we do not need to recheck */ if(document.unlockCount != 1) { /* TODO add another method to display this!