aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-06-06 22:21:32 +0000
committerrowanbeentje <rowan@beent.je>2011-06-06 22:21:32 +0000
commita6f12e754e7498cec962e0281c8401c5637aa654 (patch)
tree0a4079aa5a1346f29c85922a693d0f4e771beefc /Source
parentf3506885c3dca75f32e0bec343b018bd3a444714 (diff)
downloadsequelpro-a6f12e754e7498cec962e0281c8401c5637aa654.tar.gz
sequelpro-a6f12e754e7498cec962e0281c8401c5637aa654.tar.bz2
sequelpro-a6f12e754e7498cec962e0281c8401c5637aa654.zip
- Fix saving .spf documents without SSH key locations stored, addressing exceptions when re-saving old .spf files
Diffstat (limited to 'Source')
-rw-r--r--Source/SPDatabaseDocument.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 20379ede..bb2846c7 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -4123,7 +4123,8 @@ static NSString *SPCreateSyntx = @"SPCreateSyntax";
[connection setObject:[connectionController sshHost] forKey:@"ssh_host"];
[connection setObject:[connectionController sshUser] forKey:@"ssh_user"];
[connection setObject:[NSNumber numberWithInt:[connectionController sshKeyLocationEnabled]] forKey:@"ssh_keyLocationEnabled"];
- [connection setObject:[connectionController sshKeyLocation] forKey:@"ssh_keyLocation"];
+ if ([connectionController sshKeyLocation])
+ [connection setObject:[connectionController sshKeyLocation] forKey:@"ssh_keyLocation"];
if ([connectionController sshPort] && [[connectionController sshPort] length])
[connection setObject:[NSNumber numberWithInteger:[[connectionController sshPort] integerValue]] forKey:@"ssh_port"];
break;