- (void) stopTorrents: (NSArray *) torrents
{
-#warning look into stopping all without starting any
//don't want any of these starting then stopping
- /*for (Torrent * torrent in torrents)
- [torrent setWaitToStart: NO];*/
+ for (Torrent * torrent in torrents)
+ if ([torrent waitingToStart])
+ [torrent stopTransfer];
for (Torrent * torrent in torrents)
[torrent stopTransfer];
NSMutableArray * selectedValues = [NSMutableArray arrayWithArray: [fTableView selectedValues]];
[selectedValues removeObjectsInArray: torrents];
-#warning look into stopping all without starting any
//don't want any of these starting then stopping
- /*for (Torrent * torrent in torrents)
- [torrent setWaitToStart: NO];*/
+ for (Torrent * torrent in torrents)
+ if ([torrent waitingToStart])
+ [torrent stopTransfer];
[fTorrents removeObjectsInArray: torrents];