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)