mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-18 03:28:07 -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)
|
if (cfg.close_on_exit)
|
||||||
PostQuitMessage(0);
|
PostQuitMessage(0);
|
||||||
else {
|
else {
|
||||||
session_closed = TRUE;
|
if (!session_closed) {
|
||||||
MessageBox(hwnd, "Connection closed by remote host",
|
session_closed = TRUE;
|
||||||
"PuTTY", MB_OK | MB_ICONINFORMATION);
|
SetWindowText (hwnd, "PuTTY (inactive)");
|
||||||
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