Changeset 13166


Ignore:
Timestamp:
Jan 15, 2012, 7:39:24 AM (10 years ago)
Author:
livings124
Message:

Reselect proper rows after removing transfers on Snow Leopard

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r13165 r13166  
    13361336{
    13371337    NSMutableArray * selectedValues = nil;
    1338     if ([NSApp isOnLionOrBetter])
     1338    if (![NSApp isOnLionOrBetter])
    13391339    {
    13401340        selectedValues = [NSMutableArray arrayWithArray: [fTableView selectedValues]];
     
    14121412        for (Torrent * torrent in torrents)
    14131413            [torrent closeRemoveTorrent: deleteData];
    1414        
    1415         if (selectedValues)
    1416             [fTableView selectValues: selectedValues];
    1417     }
     1414    }
     1415   
     1416    if (selectedValues)
     1417        [fTableView selectValues: selectedValues];
    14181418   
    14191419    [self fullUpdateUI];
  • trunk/macosx/TorrentTableView.m

    r13162 r13166  
    346346- (void) outlineViewSelectionIsChanging: (NSNotification *) notification
    347347{
     348    #warning elliminate when view-based?
     349    //if pushing a button, don't change the selected rows
    348350    if (fSelectedValues)
    349351        [self selectValues: fSelectedValues];
Note: See TracChangeset for help on using the changeset viewer.