aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index cc1daeb7..2af457ec 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -435,7 +435,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
- (void)sortFavorites:(id)sender
{
SPFavoritesSortItem previousSortItem = currentSortItem;
- currentSortItem = [[sender menu] indexOfItem:sender];
+ currentSortItem = (SPFavoritesSortItem)[[sender menu] indexOfItem:sender];
[prefs setInteger:currentSortItem forKey:SPFavoritesSortedBy];