Changeset 453


Ignore:
Timestamp:
Jun 23, 2006, 11:00:58 PM (16 years ago)
Author:
livings124
Message:

More work on queueing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r452 r453  
    493493- (void) stopTorrentWithIndex: (NSIndexSet *) indexSet
    494494{
     495    //don't want any of these starting then stopping
    495496    unsigned int i;
     497    Torrent * torrent;
     498    for (i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
     499    {
     500        torrent = [fTorrents objectAtIndex: i];
     501        [torrent setWaitToStart: NO];
     502    }
     503
    496504    for (i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
    497505        [[fTorrents objectAtIndex: i] stopTransfer];
     
    10321040- (void) torrentStartSettingChange: (NSNotification *) notification
    10331041{
    1034     [self attemptToStartAuto: [notification object]];
     1042    Torrent * torrent = [notification object];
     1043    [self attemptToStartAuto: torrent];
    10351044
    10361045    [self updateUI: nil];
     
    10421051{
    10431052    #warning should check if transfer was already done
     1053    NSLog([torrent name]);
    10441054    if (![torrent waitingToStart])
    1045         return;
    1046 
     1055            return;
     1056   
    10471057    NSString * startSetting = [fDefaults stringForKey: @"StartSetting"];
    10481058    if ([startSetting isEqualToString: @"Wait"])
Note: See TracChangeset for help on using the changeset viewer.