1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

Prevent "Connection closed" message box from appearing after the

"Network error" box. The latter on its own is enough.

[originally from svn r911]
This commit is contained in:
Simon Tatham 2001-01-29 14:31:57 +00:00
parent 362d3deaf1
commit d3185a40a0

View File

@ -696,10 +696,12 @@ static void enact_pending_netevent(void) {
if (cfg.close_on_exit)
PostQuitMessage(0);
else {
session_closed = TRUE;
MessageBox(hwnd, "Connection closed by remote host",
"PuTTY", MB_OK | MB_ICONINFORMATION);
SetWindowText (hwnd, "PuTTY (inactive)");
if (!session_closed) {
session_closed = TRUE;
SetWindowText (hwnd, "PuTTY (inactive)");
MessageBox(hwnd, "Connection closed by remote host",
"PuTTY", MB_OK | MB_ICONINFORMATION);
}
}
}
}