mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
ensure the right table columns are removed on Tiger
This commit is contained in:
@@ -59,23 +59,26 @@
|
||||
{
|
||||
fDefaults = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
fTorrentCell = [[TorrentCell alloc] init];
|
||||
|
||||
if (![NSApp isOnLeopardOrBetter])
|
||||
{
|
||||
NSTableColumn * groupColumn = [self tableColumnWithIdentifier: @"Group"];
|
||||
[self setOutlineTableColumn: groupColumn];
|
||||
|
||||
//remove all unnecessary columns
|
||||
int i;
|
||||
for (i = [[self tableColumns] count]-1; i >= 0; i--)
|
||||
{
|
||||
NSTableColumn * column = [[self tableColumns] objectAtIndex: i];
|
||||
if (![[column identifier] isEqualToString: @"Group"])
|
||||
if (column != groupColumn)
|
||||
[self removeTableColumn: column];
|
||||
}
|
||||
|
||||
[self sizeLastColumnToFit];
|
||||
}
|
||||
|
||||
fTorrentCell = [[TorrentCell alloc] init];
|
||||
if (![NSApp isOnLeopardOrBetter])
|
||||
|
||||
[[self tableColumnWithIdentifier: @"Group"] setDataCell: fTorrentCell];
|
||||
}
|
||||
|
||||
NSData * groupData = [fDefaults dataForKey: @"CollapsedGroups"];
|
||||
if (groupData)
|
||||
|
||||
Reference in New Issue
Block a user