fix type selection

This commit is contained in:
Mitchell Livingston 2008-01-23 03:38:24 +00:00
parent 7837afd042
commit c0463820f7
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@
#import <transmission.h> #import <transmission.h>
#import <Controller.h> #import <Controller.h>
#define GROUP_SEPARATOR_HEIGHT 20.0 #define GROUP_SEPARATOR_HEIGHT 18.0
@class TorrentCell; @class TorrentCell;

View File

@ -130,7 +130,8 @@
- (NSString *) tableView: (NSTableView *) tableView typeSelectStringForTableColumn: (NSTableColumn *) tableColumn row: (int) row - (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 - (void) updateTrackingAreas