aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-11-27 17:32:17 +0000
committerrowanbeentje <rowan@beent.je>2010-11-27 17:32:17 +0000
commit9309908a0e5e425314f9e602ed79056134aa7750 (patch)
treebe8af7e546bef5b88022af701aec8612b77740d7 /Source/SPDatabaseDocument.m
parent7019db6cf6d23e21e54af987f02b35cf816a89ff (diff)
downloadsequelpro-9309908a0e5e425314f9e602ed79056134aa7750.tar.gz
sequelpro-9309908a0e5e425314f9e602ed79056134aa7750.tar.bz2
sequelpro-9309908a0e5e425314f9e602ed79056134aa7750.zip
- Right-align numeric columns in table content views and custom query results
- Fix exceptions caused by nil SSL locations when re-saving old session files
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 270892f0..be5f1155 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -3960,11 +3960,11 @@
[connection setObject:[NSNumber numberWithInt:[connectionController useSSL]] forKey:@"useSSL"];
[connection setObject:[NSNumber numberWithInt:[connectionController sslKeyFileLocationEnabled]] forKey:@"sslKeyFileLocationEnabled"];
- [connection setObject:[connectionController sslKeyFileLocation] forKey:@"sslKeyFileLocation"];
+ if ([connectionController sslKeyFileLocation]) [connection setObject:[connectionController sslKeyFileLocation] forKey:@"sslKeyFileLocation"];
[connection setObject:[NSNumber numberWithInt:[connectionController sslCertificateFileLocationEnabled]] forKey:@"sslCertificateFileLocationEnabled"];
[connection setObject:[connectionController sslCertificateFileLocation] forKey:@"sslCertificateFileLocation"];
[connection setObject:[NSNumber numberWithInt:[connectionController sslCACertFileLocationEnabled]] forKey:@"sslCACertFileLocationEnabled"];
- [connection setObject:[connectionController sslCACertFileLocation] forKey:@"sslCACertFileLocation"];
+ if ([connectionController sslCACertFileLocation]) [connection setObject:[connectionController sslCACertFileLocation] forKey:@"sslCACertFileLocation"];
[stateDetails setObject:[NSDictionary dictionaryWithDictionary:connection] forKey:@"connection"];
}