aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-03-12 19:37:21 +0000
committerstuconnolly <stuart02@gmail.com>2011-03-12 19:37:21 +0000
commit25065735e36fcec54c5eb034b701999722fb99a1 (patch)
treebe0726ae2e1511391fd9f13457c48399046c128e
parente1b216395c66ad9b655c73f14dd583888aaf153c (diff)
downloadsequelpro-25065735e36fcec54c5eb034b701999722fb99a1.tar.gz
sequelpro-25065735e36fcec54c5eb034b701999722fb99a1.tar.bz2
sequelpro-25065735e36fcec54c5eb034b701999722fb99a1.zip
Fix last used favorite not being remembered.
-rw-r--r--Source/SPConnectionController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index b5ab8010..5734f3de 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -617,7 +617,7 @@ static NSComparisonResult compareFavoritesUsingKey(id favorite1, id favorite2, v
[connectionSSHKeychainItemAccount release], connectionSSHKeychainItemAccount = nil;
}
- [prefs setInteger:([favoritesOutlineView selectedRow] - 1) forKey:SPLastFavoriteID];
+ [prefs setInteger:[[fav objectForKey:SPFavoriteIDKey] integerValue] forKey:SPLastFavoriteID];
// Set first responder to password field if it is empty
switch ([self type])