mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-15 02:23:36 +00:00
Fixed error when double-clicking on and empty entryTable
This commit is contained in:
@@ -504,6 +504,9 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername";
|
||||
}
|
||||
|
||||
- (void)_columnDoubleClick:(id)sender {
|
||||
if(0 == [[self.entryArrayController arrangedObjects] count]) {
|
||||
return; // No data available
|
||||
}
|
||||
NSTableColumn *column = [self.entryTable tableColumns][[self.entryTable clickedColumn]];
|
||||
NSString *identifier = [column identifier];
|
||||
if([identifier isEqualToString:MPEntryTablePasswordColumnIdentifier]) {
|
||||
|
||||
Reference in New Issue
Block a user