From c0463820f7f454d24bbd94a407fa3a9684a8e2a4 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 23 Jan 2008 03:38:24 +0000 Subject: [PATCH] fix type selection --- macosx/TorrentTableView.h | 2 +- macosx/TorrentTableView.m | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/macosx/TorrentTableView.h b/macosx/TorrentTableView.h index 77d2c80d9..a6ddb419c 100644 --- a/macosx/TorrentTableView.h +++ b/macosx/TorrentTableView.h @@ -26,7 +26,7 @@ #import #import -#define GROUP_SEPARATOR_HEIGHT 20.0 +#define GROUP_SEPARATOR_HEIGHT 18.0 @class TorrentCell; diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index b61defedd..5dbbba236 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -130,7 +130,8 @@ - (NSString *) tableView: (NSTableView *) tableView typeSelectStringForTableColumn: (NSTableColumn *) tableColumn row: (int) row { - return [[fTorrents objectAtIndex: row] name]; + id object = [fTorrents objectAtIndex: row]; + return [object isKindOfClass: [Torrent class]] ? [object name] : [[self preparedCellAtColumn: 0 row: row] stringValue]; } - (void) updateTrackingAreas