File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ - (void)updateSelection
67
67
}
68
68
69
69
[sourceView PBExpandItem: item expandParents: YES ];
70
- NSInteger index = [sourceView rowForItem: item];
70
+ NSIndexSet * index = [NSIndexSet indexSetWithIndex: [ sourceView rowForItem: item] ];
71
71
72
- [sourceView selectRow : index byExtendingSelection: NO ];
72
+ [sourceView selectRowIndexes : index byExtendingSelection: NO ];
73
73
}
74
74
75
75
- (void )addRevSpec : (PBGitRevSpecifier *)rev
Original file line number Diff line number Diff line change @@ -70,8 +70,10 @@ - (NSMenu *)menuForEvent:(NSEvent *)theEvent
70
70
int row = [self rowAtPoint: mousePoint];
71
71
72
72
// figure out if the row that was just clicked on is currently selected
73
- if ([selectedRowIndexes containsIndex: row] == NO )
74
- [self selectRow: row byExtendingSelection: NO ];
73
+ if ([selectedRowIndexes containsIndex: row] == NO ) {
74
+ NSIndexSet *index = [NSIndexSet indexSetWithIndex: row];
75
+ [self selectRowIndexes: index byExtendingSelection: NO ];
76
+ }
75
77
}
76
78
77
79
return [controller contextMenuForTreeView ];
You can’t perform that action at this time.
0 commit comments