aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-11-26 16:17:55 +0000
committerBibiko <bibiko@eva.mpg.de>2009-11-26 16:17:55 +0000
commit19867175eed5aebee585c1ba6d8901176422703d (patch)
tree46f24dded0ab25ec7ee3e0b0c28be74508979ff0 /Source/TableDocument.m
parentc31713e4b8a0ea191cf2aba1c34bba45c3a8c483 (diff)
downloadsequelpro-19867175eed5aebee585c1ba6d8901176422703d.tar.gz
sequelpro-19867175eed5aebee585c1ba6d8901176422703d.tar.bz2
sequelpro-19867175eed5aebee585c1ba6d8901176422703d.zip
• fixed bug while reading "ssh_port" and "port" from SPF file
- now the SPF's integer value will be converted to a string correctly
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 53d4474a..357952fb 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -447,7 +447,7 @@
if([connection objectForKey:@"host"])
[connectionController setHost:[connection objectForKey:@"host"]];
if([connection objectForKey:@"port"])
- [connectionController setPort:[NSString stringWithFormat:@"%d", [connection objectForKey:@"port"]]];
+ [connectionController setPort:[NSString stringWithFormat:@"%d", [[connection objectForKey:@"port"] intValue]]];
if([connection objectForKey:@"kcid"] && [[connection objectForKey:@"kcid"] length])
[self setKeychainID:[connection objectForKey:@"kcid"]];
@@ -469,7 +469,7 @@
if([connection objectForKey:@"ssh_user"])
[connectionController setSshUser:[connection objectForKey:@"ssh_user"]];
if([connection objectForKey:@"ssh_port"])
- [connectionController setSshPort:[NSString stringWithFormat:@"%d", [connection objectForKey:@"ssh_port"]]];
+ [connectionController setSshPort:[NSString stringWithFormat:@"%d", [[connection objectForKey:@"ssh_port"] intValue]]];
// Set ssh password - if not in SPF file try to get it via the KeyChain
if([connection objectForKey:@"ssh_password"])