Initially select IP column for sorting.

This commit is contained in:
Mitchell Livingston 2006-08-15 01:40:47 +00:00
parent 199bb19e14
commit 96a75b88d4
2 changed files with 5 additions and 2 deletions

View File

@ -79,6 +79,10 @@
[fTabView selectTabViewItemWithIdentifier: identifier];
[self setWindowForTab: identifier animate: NO];
if ([[fPeerTable sortDescriptors] count] == 0)
[fPeerTable setSortDescriptors: [NSArray arrayWithObject: [[fPeerTable tableColumnWithIdentifier: @"IP"]
sortDescriptorPrototype]]];
[self updateInfoForTorrents: [NSArray array]];
}
@ -499,8 +503,7 @@
if ([oldDescriptors count] > 0)
[descriptors addObject: [oldDescriptors objectAtIndex: 0]];
[descriptors addObject: [[[fPeerTable tableColumns] objectAtIndex: [fPeerTable columnWithIdentifier: @"IP"]]
sortDescriptorPrototype]];
[descriptors addObject: [[fPeerTable tableColumnWithIdentifier: @"IP"] sortDescriptorPrototype]];
return descriptors;
}