Changeset 454


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

The checking for autostarting in the inspector now correctly starts the transfer if it is able to.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r453 r454  
    10401040- (void) torrentStartSettingChange: (NSNotification *) notification
    10411041{
    1042     Torrent * torrent = [notification object];
    1043     [self attemptToStartAuto: torrent];
     1042    [self attemptToStartAuto: [notification object]];
    10441043
    10451044    [self updateUI: nil];
     
    10511050{
    10521051    #warning should check if transfer was already done
    1053     NSLog([torrent name]);
    10541052    if (![torrent waitingToStart])
    10551053            return;
  • trunk/macosx/InfoWindowController.m

    r452 r454  
    472472- (void) setWaitToStart: (id) sender
    473473{
    474     Torrent * torrent;
    475     NSEnumerator * enumerator = [fTorrents objectEnumerator];
    476     while ((torrent = [enumerator nextObject]))
    477         [torrent setWaitToStart: [sender state]];
     474    #warning make work with multiples
     475    Torrent * torrent = [fTorrents objectAtIndex: 0];
     476    [torrent setWaitToStart: [sender state]];
    478477   
    479478    [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStartSettingChange" object: torrent];
Note: See TracChangeset for help on using the changeset viewer.