mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
revert last change - it didn't load the values properly
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user