mirror of
https://github.com/transmission/transmission
synced 2025-03-10 14:13:23 +00:00
revert last change - it didn't load the values properly
This commit is contained in:
parent
f36d99ad74
commit
df4c46b73a
1 changed files with 2 additions and 4 deletions
|
@ -276,17 +276,15 @@
|
|||
NSArray * rules = [[GroupsController groups] autoAssignRulesForIndex: index];
|
||||
if (rules)
|
||||
{
|
||||
for (NSInteger index = 0; index < [rules count]; index++)
|
||||
for (NSInteger i = 0; i < [rules count]; i++)
|
||||
{
|
||||
[fRuleEditor addRow: nil];
|
||||
[fRuleEditor setCriteria: [rules objectAtIndex: index] andDisplayValues: [NSArray array] forRowAtIndex: index];
|
||||
[fRuleEditor setCriteria: [rules objectAtIndex: i] andDisplayValues: [NSArray array] forRowAtIndex: i];
|
||||
}
|
||||
}
|
||||
|
||||
if ([fRuleEditor numberOfRows] == 0)
|
||||
[fRuleEditor addRow: nil];
|
||||
|
||||
[fRuleEditor reloadCriteria];
|
||||
|
||||
[NSApp beginSheet: fGroupRulesSheetWindow modalForWindow: [fTableView window] modalDelegate: nil didEndSelector: NULL
|
||||
contextInfo: NULL];
|
||||
|
|
Loading…
Add table
Reference in a new issue