mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 08:12:28 +00:00
Newly created Group now gets selected in Outline
This commit is contained in:
@@ -164,13 +164,7 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
|
||||
NSIndexPath *groupIndexPath = [group indexPath];
|
||||
NSTreeNode *groupNode = [[self.treeController arrangedObjects] descendantNodeAtIndexPath:groupIndexPath];
|
||||
[self.outlineView expandItem:groupNode.parentNode];
|
||||
/* TODO: Select created Group
|
||||
NSUInteger row = 0;
|
||||
for(NSUInteger index = 0; index < [groupIndexPath length]; index++ ) {
|
||||
row += [groupIndexPath indexAtPosition:index];
|
||||
}
|
||||
[self.outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];
|
||||
*/
|
||||
[self.outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:[self.outlineView rowForItem:groupNode]] byExtendingSelection:NO];
|
||||
}
|
||||
|
||||
- (id)itemUnderMouse {
|
||||
|
||||
Reference in New Issue
Block a user