Changeset 2195
- Timestamp:
- Jun 25, 2007, 1:15:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Torrent.m
r2189 r2195 1339 1339 for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index]) 1340 1340 { 1341 if (tr_torrentGetFilePriority(fHandle, index) != TR_PRI_DND || [self fileProgress: index] >= 1.0) 1341 if (tr_torrentGetFilePriority(fHandle, index) != TR_PRI_DND 1342 || [self canChangeDownloadCheckForFiles: [NSIndexSet indexSetWithIndex: index]]) 1342 1343 onState = YES; 1343 1344 else … … 1352 1353 - (BOOL) canChangeDownloadCheckForFiles: (NSIndexSet *) indexSet 1353 1354 { 1355 if ([self fileCount] <= 1) 1356 return NO; 1357 1354 1358 int index; 1355 1359 for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index]) … … 1414 1418 for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index]) 1415 1419 if (priority == [[[fFlatFileList objectAtIndex: index] objectForKey: @"Priority"] intValue] 1416 && [self fileProgress: index] < 1.0)1420 && [self canChangeDownloadCheckForFiles: [NSIndexSet indexSetWithIndex: index]]) 1417 1421 return YES; 1418 1422 return NO;
Note: See TracChangeset
for help on using the changeset viewer.