1
0
Fork 0
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:
Mitchell Livingston 2008-12-09 01:01:29 +00:00
parent f36d99ad74
commit df4c46b73a

View file

@ -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];