From 48ca39af327bbba4a0fc565c37d3e165758cf731 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 22 Jul 2009 09:26:11 +0000 Subject: - Allow the reconnection dialogs to function correctly if anything other than "Disconnect" is selected - Fix tunnel restarts --- Source/TableDocument.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Source/TableDocument.m') 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; } -- cgit v1.2.3