1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-03 18:25:35 +00:00

missed one

This commit is contained in:
Mitchell Livingston 2008-10-12 21:39:12 +00:00
parent 9d5430a381
commit 4e388c95aa

View file

@ -352,7 +352,7 @@ typedef enum
BOOL current = NO, canChange = NO;
NSIndexSet * fileIndexSet;
for (NSInteger i = [indexSet firstIndex]; i != NSNotFound && !current; i = [indexSet indexGreaterThanIndex: i])
for (NSInteger i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
{
fileIndexSet = [[fOutline itemAtRow: i] indexes];
if (![fTorrent canChangeDownloadCheckForFiles: fileIndexSet])
@ -360,7 +360,10 @@ typedef enum
canChange = YES;
if ([fTorrent hasFilePriority: priority forIndexes: fileIndexSet])
{
current = YES;
break;
}
}
[menuItem setState: current ? NSOnState : NSOffState];