aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-12-10 22:45:08 +0000
committerrowanbeentje <rowan@beent.je>2009-12-10 22:45:08 +0000
commitd3a2a30cc490ceabb68f8bf679d8d328eb97a2a9 (patch)
tree92250c005bcad366488bdb5f38f93987814f3f20 /Source/TableDocument.m
parentc1b9f9936fbf99ecf0f5ad2faaa0755fa27963c2 (diff)
downloadsequelpro-d3a2a30cc490ceabb68f8bf679d8d328eb97a2a9.tar.gz
sequelpro-d3a2a30cc490ceabb68f8bf679d8d328eb97a2a9.tar.bz2
sequelpro-d3a2a30cc490ceabb68f8bf679d8d328eb97a2a9.zip
- Fix saving of custom SSH ports when the MySQL server is on a standard port - this addresses Issue #495
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 2fbe19c7..7da74a07 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -2640,7 +2640,7 @@
aString = @"SPSSHTunnelConnection";
[connection setObject:[connectionController sshHost] forKey:@"ssh_host"];
[connection setObject:[connectionController sshUser] forKey:@"ssh_user"];
- if([connectionController port] && [[connectionController port] length])
+ if([connectionController sshPort] && [[connectionController sshPort] length])
[connection setObject:[NSNumber numberWithInt:[[connectionController sshPort] intValue]] forKey:@"ssh_port"];
break;
default: