From 813c380470ef5f80145332f265ea8a2facdcac28 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 26 Nov 2017 17:55:00 +0000 Subject: [PATCH] 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. --- unix/gtkdlg.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/unix/gtkdlg.c b/unix/gtkdlg.c index 5c69cb56..1b9b8d42 100644 --- a/unix/gtkdlg.c +++ b/unix/gtkdlg.c @@ -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, ...)