Changeset 11884 for trunk/macosx/Controller.m
- Timestamp:
- Feb 13, 2011, 2:02:13 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r11872 r11884 1325 1325 { 1326 1326 [torrents retain]; 1327 NSInteger active = 0, downloading = 0;1328 1327 1329 1328 if ([fDefaults boolForKey: @"CheckRemove"]) 1330 1329 { 1330 NSInteger active = 0, downloading = 0; 1331 1331 for (Torrent * torrent in torrents) 1332 1332 if ([torrent isActive]) … … 1434 1434 } 1435 1435 1436 #warning why do we need them retained? 1436 1437 [torrents release]; 1437 1438 … … 1449 1450 { 1450 1451 [self removeTorrents: [fTableView selectedTorrents] deleteData: YES]; 1452 } 1453 1454 - (void) clearCompleted: (id) sender 1455 { 1456 NSMutableArray * torrents = [[NSMutableArray alloc] init]; 1457 1458 for (Torrent * torrent in fTorrents) 1459 if ([torrent isFinishedSeeding]) 1460 [torrents addObject: torrent]; 1461 1462 [self confirmRemoveTorrents: torrents deleteData: NO]; 1451 1463 } 1452 1464 … … 3903 3915 return canUseTable && [fTableView numberOfSelectedRows] > 0; 3904 3916 } 3917 3918 //clear completed transfers item 3919 if (action == @selector(clearCompleted:)) 3920 { 3921 for (Torrent * torrent in fTorrents) 3922 if ([torrent isFinishedSeeding]) 3923 return YES; 3924 return NO; 3925 } 3905 3926 3906 3927 //enable pause all item
Note: See TracChangeset
for help on using the changeset viewer.