aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-07-22 09:26:11 +0000
committerrowanbeentje <rowan@beent.je>2009-07-22 09:26:11 +0000
commit48ca39af327bbba4a0fc565c37d3e165758cf731 (patch)
tree92819fef72fc19d26325ce400f1d99e47c6113a1 /Source
parent2c41f2706550e13312f50249ba9bfa6dc0a9e77d (diff)
downloadsequelpro-48ca39af327bbba4a0fc565c37d3e165758cf731.tar.gz
sequelpro-48ca39af327bbba4a0fc565c37d3e165758cf731.tar.bz2
sequelpro-48ca39af327bbba4a0fc565c37d3e165758cf731.zip
- Allow the reconnection dialogs to function correctly if anything other than "Disconnect" is selected
- Fix tunnel restarts
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index ae2457e3..8302f553 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -2067,9 +2067,11 @@
[connectionErrorDialog orderOut:nil];
// If "disconnect" was selected, trigger a window close.
- [self windowWillClose:nil];
- if (connectionErrorCode == MCPConnectionCheckDisconnect)
- [tableWindow performSelector:@selector(close) withObject:nil afterDelay:0.0];
+ if (connectionErrorCode == 2) {
+ [self windowWillClose:nil];
+ if (connectionErrorCode == MCPConnectionCheckDisconnect)
+ [tableWindow performSelector:@selector(close) withObject:nil afterDelay:0.0];
+ }
return connectionErrorCode;
}