Changeset 877


Ignore:
Timestamp:
Sep 21, 2006, 11:20:08 PM (15 years ago)
Author:
livings124
Message:

pausing torrents will now remove them for the queue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nat-traversal/macosx/Controller.m

    r876 r877  
    20052005        NSEnumerator * enumerator = [fTorrents objectEnumerator];
    20062006        while ((torrent = [enumerator nextObject]))
    2007             if ([torrent isActive])
     2007            if ([torrent isActive] || [torrent waitingToStart])
    20082008                return YES;
    20092009        return NO;
     
    20292029       
    20302030        for (i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
    2031             if ([[fDisplayedTorrents objectAtIndex: i] isActive])
     2031            if ([[fDisplayedTorrents objectAtIndex: i] isActive] || [torrent waitingToStart])
    20322032                return YES;
    20332033        return NO;
     
    21602160        NSEnumerator * enumerator = [fTorrents objectEnumerator];
    21612161        while ((torrent = [enumerator nextObject]))
    2162             if ([torrent isActive])
     2162            if ([torrent isActive] || [torrent waitingToStart])
    21632163                return YES;
    21642164        return NO;
     
    22222222        {
    22232223            torrent = [fDisplayedTorrents objectAtIndex: i];
    2224             if ([torrent isActive])
     2224            if ([torrent isActive] || [torrent waitingToStart])
    22252225                return YES;
    22262226        }
Note: See TracChangeset for help on using the changeset viewer.