Changeset 9489
- Timestamp:
- Nov 7, 2009, 4:48:02 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Torrent.m
r9487 r9489 1230 1230 return 1.0; 1231 1231 1232 if ([self fileCount] == 1) 1233 return [self progress]; 1234 1232 1235 if (!fFileStat) 1233 1236 [self updateFileStat]; … … 1253 1256 - (BOOL) canChangeDownloadCheckForFile: (NSInteger) index 1254 1257 { 1258 NSAssert2(index < [self fileCount], @"Index %d is greater than file count %d", index, [self fileCount]); 1259 1260 if ([self fileCount] == 1 || [self isComplete]) 1261 return NO; 1262 1255 1263 if (!fFileStat) 1256 1264 [self updateFileStat]; 1257 1265 1258 return [self fileCount] > 1 &&fFileStat[index].progress < 1.0;1266 return fFileStat[index].progress < 1.0; 1259 1267 } 1260 1268 1261 1269 - (BOOL) canChangeDownloadCheckForFiles: (NSIndexSet *) indexSet 1262 1270 { 1263 if ([self fileCount] <= 1 || [self isComplete])1271 if ([self fileCount] == 1 || [self isComplete]) 1264 1272 return NO; 1265 1273
Note: See TracChangeset
for help on using the changeset viewer.