aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-03-12 01:31:21 +0000
committerrowanbeentje <rowan@beent.je>2013-03-12 01:31:21 +0000
commitd27b44c2119875f603c175e928073bea218f66ff (patch)
treec9c100915262b1e27e1b08bc3f5c17ea52a201bd /Source/SPConnectionController.m
parente78826bf5848073f6cd095f500bff7c98f11d8b2 (diff)
downloadsequelpro-d27b44c2119875f603c175e928073bea218f66ff.tar.gz
sequelpro-d27b44c2119875f603c175e928073bea218f66ff.tar.bz2
sequelpro-d27b44c2119875f603c175e928073bea218f66ff.zip
- Improve startup when loading from file, preventing overwrite of details read from a spf/spfs during startup. This addresses Issue #1619
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index dd2bd808..f68e2036 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -650,8 +650,17 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
}
[prefs setInteger:[[fav objectForKey:SPFavoriteIDKey] integerValue] forKey:SPLastFavoriteID];
+
+ [self updateFavoriteNextKeyView];
+#endif
+}
- // Set the next KeyView to password field if the password is empty
+/**
+ * Set the next KeyView to password field if the password is empty
+ */
+- (void)updateFavoriteNextKeyView
+{
+#ifndef SP_CODA
switch ([self type])
{
case SPTCPIPConnection: