From b242dcaf14f2daf7b031180101fe8715e5f3d63f Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 2 Nov 2012 21:46:18 +0000 Subject: [PATCH] simplify how the torrent table gets the type ahead name for group rows --- macosx/TorrentTableView.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index 474c25e11..7750b0ec4 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -201,8 +201,10 @@ - (NSString *) outlineView: (NSOutlineView *) outlineView typeSelectStringForTableColumn: (NSTableColumn *) tableColumn item: (id) item { - return [item isKindOfClass: [Torrent class]] ? [(Torrent *)item name] - : [[self preparedCellAtColumn: [self columnWithIdentifier: @"Group"] row: [self rowForItem: item]] stringValue]; + if ([item isKindOfClass: [Torrent class]]) + return [(Torrent *)item name]; + else + return [[self dataSource] outlineView:outlineView objectValueForTableColumn:[self tableColumnWithIdentifier:@"Group"] byItem:item]; } - (NSString *) outlineView: (NSOutlineView *) outlineView toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect tableColumn: (NSTableColumn *) column item: (id) item mouseLocation: (NSPoint) mouseLocation