diff options
author | stuconnolly <stuart02@gmail.com> | 2012-01-28 17:48:40 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-01-28 17:48:40 +0000 |
commit | dcff7d1299bd0887736f7464698b61ef18a94416 (patch) | |
tree | 703475e6bc6d2d117c2eee3b7486e0a5cf61e63c /Source/SPConnectionController.m | |
parent | 816c870b93ad7bd3078d8b7a700e24354adfe4af (diff) | |
download | sequelpro-dcff7d1299bd0887736f7464698b61ef18a94416.tar.gz sequelpro-dcff7d1299bd0887736f7464698b61ef18a94416.tar.bz2 sequelpro-dcff7d1299bd0887736f7464698b61ef18a94416.zip |
Tidy up.
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]; |