diff options
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 62767fe8..4b7db791 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -939,9 +939,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, id newObject = [change objectForKey:NSKeyValueChangeNewKey]; if (oldObject != newObject) { - NSMutableDictionary *favorite = [self selectedFavorite]; - - [favorite setObject:(newObject) ? newObject : @"" forKey:keyPath]; + [[self selectedFavorite] setObject:(newObject) ? newObject : @"" forKey:keyPath]; // Save the new data to disk [favoritesController saveFavorites]; |