#1661 show group rules for the proper group

This commit is contained in:
Mitchell Livingston 2009-01-06 01:21:02 +00:00
parent 3ff145f058
commit 28ce3a64e8
1 changed files with 2 additions and 1 deletions

View File

@ -255,7 +255,8 @@
if (!fGroupRulesSheetWindow)
[NSBundle loadNibNamed: @"GroupRules" owner: self];
NSPredicate *predicate = [[GroupsController groups] autoAssignRulesForIndex: [fTableView selectedRow]];
NSInteger index = [[GroupsController groups] indexForRow: [fTableView selectedRow]];
NSPredicate *predicate = [[GroupsController groups] autoAssignRulesForIndex: index];
[fRuleEditor setObjectValue: predicate];
if ([fRuleEditor numberOfRows] == 0)