Changeset 781


Ignore:
Timestamp:
Aug 15, 2006, 1:40:47 AM (15 years ago)
Author:
livings124
Message:

Initially select IP column for sorting.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r780 r781  
    8080    [self setWindowForTab: identifier animate: NO];
    8181   
     82    if ([[fPeerTable sortDescriptors] count] == 0)
     83        [fPeerTable setSortDescriptors: [NSArray arrayWithObject: [[fPeerTable tableColumnWithIdentifier: @"IP"]
     84                                            sortDescriptorPrototype]]];
     85   
    8286    [self updateInfoForTorrents: [NSArray array]];
    8387}
     
    500504        [descriptors addObject: [oldDescriptors objectAtIndex: 0]];
    501505   
    502     [descriptors addObject: [[[fPeerTable tableColumns] objectAtIndex: [fPeerTable columnWithIdentifier: @"IP"]]
    503                                 sortDescriptorPrototype]];
     506    [descriptors addObject: [[fPeerTable tableColumnWithIdentifier: @"IP"] sortDescriptorPrototype]];
    504507   
    505508    return descriptors;
Note: See TracChangeset for help on using the changeset viewer.