Changeset 4936


Ignore:
Timestamp:
Feb 7, 2008, 2:11:26 AM (14 years ago)
Author:
livings124
Message:

expand a torrent's group when removing it, since either the whole group is being removed or it is already expanded

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r4935 r4936  
    11681168    while ((torrent = [enumerator nextObject]))
    11691169    {
     1170        //expand the group, since either the whole group is being removed or it is already expanded
     1171        [fTableView removeCollapsedGroup: [torrent groupValue]];
     1172       
    11701173        if (deleteData)
    11711174            [torrent trashData];
     
    19391942   
    19401943    //reset expanded/collapsed rows
     1944    #warning redo to not require storing an indexset?
    19411945    if (groupRows && [fDisplayedTorrents count] > 0 && [NSApp isOnLeopardOrBetter])
    19421946    {
  • trunk/macosx/TorrentTableView.h

    r4935 r4936  
    5353
    5454- (NSIndexSet *) collapsedGroupsIndexes;
     55- (void) removeCollapsedGroup: (int) value;
    5556
    5657- (void) removeButtonTrackingAreas;
  • trunk/macosx/TorrentTableView.m

    r4935 r4936  
    9494{
    9595    return fCollapsedGroups;
     96}
     97
     98- (void) removeCollapsedGroup: (int) value
     99{
     100    if (value < 0)
     101        value = INT_MAX;
     102   
     103    [fCollapsedGroups removeIndex: value];
    96104}
    97105
Note: See TracChangeset for help on using the changeset viewer.