fix a whoops with group row removal; when removing a row, select the row below it

This commit is contained in:
Mitchell Livingston
2008-11-29 21:29:06 +00:00
parent 69877384f1
commit 128c91479a
2 changed files with 39 additions and 26 deletions

View File

@@ -196,7 +196,7 @@ GroupsController * fGroupsInstance = nil;
- (void) removeGroupWithRowIndex: (NSInteger) row
{
NSInteger index = [[[fGroups objectAtIndex: row] objectForKey: @"Index"] intValue];
[fGroups removeObjectAtIndex: index];
[fGroups removeObjectAtIndex: row];
[[NSNotificationCenter defaultCenter] postNotificationName: @"GroupValueRemoved" object: self userInfo:
[NSDictionary dictionaryWithObject: [NSNumber numberWithInt: index] forKey: @"Index"]];