1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 19:42:48 -05:00

Make connection_fatal() nonmodal.

This change requires me to break up the general cleanups in
delete_inst() into two halves: one runs when the error message box is
created, and cleans up the network connection and all the stuff
associated with it, and the other runs when the error message is
dismissed and the window can actually close.
This commit is contained in:
Simon Tatham
2017-11-26 19:59:24 +00:00
parent 813c380470
commit 3e24bb610d
3 changed files with 60 additions and 32 deletions

View File

@ -3691,13 +3691,6 @@ void old_keyfile_warning(void)
*/
}
void fatal_message_box(void *window, const char *msg)
{
message_box(window, "PuTTY Fatal Error", msg,
string_width("REASONABLY LONG LINE OF TEXT FOR BASIC SANITY"),
FALSE, &buttons_ok);
}
void nonfatal_message_box(void *window, const char *msg)
{
char *title = dupcat(appname, " Error", NULL);