Changeset 2091


Ignore:
Timestamp:
Jun 16, 2007, 3:03:23 PM (15 years ago)
Author:
livings124
Message:

stop a crash when using filters and changing file checks

Location:
branches/file_selection/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/file_selection/macosx/InfoWindowController.m

    r2088 r2091  
    888888        [torrent setFileCheckState: [object intValue] != NSOffState ? NSOnState : NSOffState
    889889                                        forIndexes: [item objectForKey: @"Indexes"]];
    890        
    891         [torrent update];
    892         [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
    893890        [fFileOutline reloadData];
    894891    }
  • branches/file_selection/macosx/Torrent.m

    r2089 r2091  
    345345        [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentFinishedDownloading" object: self];
    346346    }
     347    else if (tr_getIncomplete(fHandle))
     348        [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
    347349   
    348350    //check to stop for ratio
     
    13661368        tr_torrentSetFilePriority(fHandle, index, actualPriority);
    13671369    }
     1370   
     1371    [self update];
     1372    if (![self isActive])
     1373        [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
    13681374}
    13691375
Note: See TracChangeset for help on using the changeset viewer.