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:
parent
362d3deaf1
commit
d3185a40a0
10
window.c
10
window.c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user