aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConnectionController.m10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 8aa6ef54..2c622cee 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -1225,14 +1225,8 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
]];
}
- // Trigger a password change
- if (previousType == SPSocketConnection) {
- [self _updateFavoritePasswordsFromField:socketPasswordField];
- } else if (previousType == SPSSHTunnelConnection) {
- [self _updateFavoritePasswordsFromField:sshPasswordField];
- } else {
- [self _updateFavoritePasswordsFromField:standardPasswordField];
- }
+ // Trigger a password change in response to host changes
+ [self _updateFavoritePasswordsFromField:nil];
}
/**