aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index a4f078a3..e8187334 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -3575,11 +3575,10 @@
[NSApp endSheet:connectionErrorDialog];
[connectionErrorDialog orderOut:nil];
- // If "disconnect" was selected, trigger a window close.
- if (connectionErrorCode == 2) {
+ // If 'disconnect' was selected, trigger a window close.
+ if (connectionErrorCode == MCPConnectionCheckDisconnect) {
[self windowWillClose:nil];
- if (connectionErrorCode == MCPConnectionCheckDisconnect)
- [tableWindow performSelector:@selector(close) withObject:nil afterDelay:0.0];
+ [tableWindow performSelector:@selector(close) withObject:nil afterDelay:0.0];
}
return connectionErrorCode;