From 28ce3a64e8345c52221c3323dd8f93c7d6dd91da Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 6 Jan 2009 01:21:02 +0000 Subject: [PATCH] #1661 show group rules for the proper group --- macosx/GroupsPrefsController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macosx/GroupsPrefsController.m b/macosx/GroupsPrefsController.m index 3b881ec52..7fddb3c11 100644 --- a/macosx/GroupsPrefsController.m +++ b/macosx/GroupsPrefsController.m @@ -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)