aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-06-05 11:35:59 +0000
committerrowanbeentje <rowan@beent.je>2012-06-05 11:35:59 +0000
commitf4333250c7b96df042d49db86d9e56cff42f0969 (patch)
treebd5480fe41284b2bb3a3e1530e105d15b3e5ff66 /Source/SPConnectionController.m
parent41c6a1af0b7540c53a9de2e76c67b33ff56e907e (diff)
downloadsequelpro-f4333250c7b96df042d49db86d9e56cff42f0969.tar.gz
sequelpro-f4333250c7b96df042d49db86d9e56cff42f0969.tar.bz2
sequelpro-f4333250c7b96df042d49db86d9e56cff42f0969.zip
- Fix saving of connection password on host changes from triggering too often
Diffstat (limited to 'Source/SPConnectionController.m')
-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];
}
/**