From f4333250c7b96df042d49db86d9e56cff42f0969 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 5 Jun 2012 11:35:59 +0000 Subject: - Fix saving of connection password on host changes from triggering too often --- Source/SPConnectionController.m | 10 ++-------- 1 file 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]; } /** -- cgit v1.2.3