aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-04-20 14:51:08 +0000
committerstuconnolly <stuart02@gmail.com>2010-04-20 14:51:08 +0000
commit9efc2f7c779b1b331ecb1f5938dd1a06f3dbc63b (patch)
tree0cd752a474ddfc066f4eeb0ed5d4b5e9eaad0c93 /Source
parent9c93e74165fd4e75eb2c7389c438169f4d46de99 (diff)
downloadsequelpro-9efc2f7c779b1b331ecb1f5938dd1a06f3dbc63b.tar.gz
sequelpro-9efc2f7c779b1b331ecb1f5938dd1a06f3dbc63b.tar.bz2
sequelpro-9efc2f7c779b1b331ecb1f5938dd1a06f3dbc63b.zip
When saving an SPF only save the socket if it's present. Fixes http://spbug.com/l/137
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index d97a146e..1a56d480 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -2886,7 +2886,7 @@
break;
case SPSocketConnection:
aString = @"SPSocketConnection";
- [connection setObject:[connectionController socket] forKey:@"socket"];
+ if ([connectionController socket] && [[connectionController socket] length]) [connection setObject:[connectionController socket] forKey:@"socket"];
break;
case SPSSHTunnelConnection:
aString = @"SPSSHTunnelConnection";