mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
fix a whoops with group row removal; when removing a row, select the row below it
This commit is contained in:
@@ -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"]];
|
||||
|
||||
Reference in New Issue
Block a user