mirror of
https://github.com/transmission/transmission
synced 2025-03-03 18:25:35 +00:00
missed one
This commit is contained in:
parent
9d5430a381
commit
4e388c95aa
1 changed files with 4 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue