diff options
Diffstat (limited to 'Source/SPConnectionControllerDataSource.m')
-rw-r--r-- | Source/SPConnectionControllerDataSource.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/SPConnectionControllerDataSource.m b/Source/SPConnectionControllerDataSource.m index 17da21c7..daf2c3af 100644 --- a/Source/SPConnectionControllerDataSource.m +++ b/Source/SPConnectionControllerDataSource.m @@ -71,18 +71,17 @@ */ - (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)childIndex ofItem:(id)item { - // For the top level of the tree, return the "Quick Connect" child for position zero; // amend all other positions to compensate for the faked position. if (!item) { if (childIndex == 0) { return quickConnectItem; } + childIndex--; } SPTreeNode *node = (item == nil ? favoritesRoot : (SPTreeNode *)item); - return NSArrayObjectAtIndex([node childNodes], childIndex); } |