Changeset 488 for trunk/macosx/Controller.m
- Timestamp:
- Jun 30, 2006, 1:14:52 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r484 r488 1437 1437 || action == @selector(removeDeleteTorrent:) || action == @selector(removeDeleteBoth:)) 1438 1438 { 1439 BOOL active = NO,1439 BOOL warning = NO, onlyDownloading = [fDefaults boolForKey: @"CheckRemoveDownloading"], 1440 1440 canDelete = action != @selector(removeDeleteTorrent:) && action != @selector(removeDeleteBoth:); 1441 1441 Torrent * torrent; … … 1446 1446 { 1447 1447 torrent = [fTorrents objectAtIndex: i]; 1448 if (! active&& [torrent isActive])1448 if (!warning && [torrent isActive]) 1449 1449 { 1450 active =YES;1451 if ( canDelete)1450 warning = onlyDownloading ? ![torrent isSeeding] : YES; 1451 if (warning && canDelete) 1452 1452 break; 1453 1453 } … … 1455 1455 { 1456 1456 canDelete = YES; 1457 if ( active)1457 if (warning) 1458 1458 break; 1459 1459 } … … 1462 1462 //append or remove ellipsis when needed 1463 1463 NSString * title = [menuItem title], * ellipsis = [NSString ellipsis]; 1464 if ( active&& [fDefaults boolForKey: @"CheckRemove"])1464 if (warning && [fDefaults boolForKey: @"CheckRemove"]) 1465 1465 { 1466 1466 if (![title hasSuffix: ellipsis])
Note: See TracChangeset
for help on using the changeset viewer.