From d3a2a30cc490ceabb68f8bf679d8d328eb97a2a9 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 10 Dec 2009 22:45:08 +0000 Subject: - Fix saving of custom SSH ports when the MySQL server is on a standard port - this addresses Issue #495 --- Source/TableDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3