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

Make nonfatal() nonmodal.

This one was completely trivial, except that while I was at it, I took
the opportunity to put the right program name in the window title.
This commit is contained in:
Simon Tatham 2017-11-26 17:55:00 +00:00
parent 4f3f4ed691
commit 813c380470

View File

@ -3700,9 +3700,12 @@ void fatal_message_box(void *window, const char *msg)
void nonfatal_message_box(void *window, const char *msg)
{
message_box(window, "PuTTY Error", msg,
string_width("REASONABLY LONG LINE OF TEXT FOR BASIC SANITY"),
FALSE, &buttons_ok);
char *title = dupcat(appname, " Error", NULL);
create_message_box(
window, title, msg,
string_width("REASONABLY LONG LINE OF TEXT FOR BASIC SANITY"),
FALSE, &buttons_ok, trivial_post_dialog_fn, NULL);
sfree(title);
}
void nonfatal(const char *p, ...)