mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 13:39:27 +00:00
Fixed regression of newly created entry not being properly selected
This commit is contained in:
@@ -475,6 +475,10 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
|
||||
NSUInteger row = [self.entryArrayController.arrangedObjects indexOfObject:entry];
|
||||
[self.entryTable scrollRowToVisible:row];
|
||||
[self.entryTable selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];
|
||||
// since we do not update the current selection when the table view is not first responder, do it here manually
|
||||
if(self.entryTable.window.firstResponder != self.entryTable) {
|
||||
document.selectedEntries = self.entryArrayController.selectedObjects;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)_didUpdateSearchResults:(NSNotification *)notification {
|
||||
|
||||
Reference in New Issue
Block a user