aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-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])