diff options
author | stuconnolly <stuart02@gmail.com> | 2011-03-12 19:37:21 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-03-12 19:37:21 +0000 |
commit | 25065735e36fcec54c5eb034b701999722fb99a1 (patch) | |
tree | be0726ae2e1511391fd9f13457c48399046c128e /Source | |
parent | e1b216395c66ad9b655c73f14dd583888aaf153c (diff) | |
download | sequelpro-25065735e36fcec54c5eb034b701999722fb99a1.tar.gz sequelpro-25065735e36fcec54c5eb034b701999722fb99a1.tar.bz2 sequelpro-25065735e36fcec54c5eb034b701999722fb99a1.zip |
Fix last used favorite not being remembered.
Diffstat (limited to 'Source')
-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 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]) |