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:
parent
4f3f4ed691
commit
813c380470
@ -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, ...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user