aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/CMMCPConnection.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CMMCPConnection.m b/Source/CMMCPConnection.m
index 90b915fe..afba40a9 100644
--- a/Source/CMMCPConnection.m
+++ b/Source/CMMCPConnection.m
@@ -466,7 +466,11 @@ static void forcePingTimeout(int signalNumber);
}
}
} else if (parentWindow) {
- [self setLastErrorMessage:nil];
+ if (connectionTunnel && [connectionTunnel state] != SPSSH_STATE_CONNECTED) {
+ [self setLastErrorMessage:@"(Could not connect because the Sequel Pro SSH Tunnel could not be reestablished)"];
+ } else {
+ [self setLastErrorMessage:nil];
+ }
// If the connection was not successfully established, ask how to proceed.
[NSApp beginSheet:connectionErrorDialog modalForWindow:parentWindow modalDelegate:self didEndSelector:nil contextInfo:nil];