diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/TableDocument.m | 8 |
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; } |