diff options
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 12624178..a91f6929 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -741,7 +741,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, { NSArray *nodes = [self selectedFavoriteNodes]; - return ([nodes count]) ? (SPTreeNode *)[nodes objectAtIndex:0] : nil; + return (SPTreeNode *)[nodes objectOrNilAtIndex:0]; } /** |