From e3a923c2bc496de349835f05bf52cce3686b2e1a Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 19 May 2019 00:04:26 +0200 Subject: [PATCH] ignore QUIT messages from the system during the quit dialog fixes http://pulkomandy.tk/projects/GrafX2/ticket/116 --- src/buttons.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/buttons.c b/src/buttons.c index 38ca87fa..242859a8 100644 --- a/src/buttons.c +++ b/src/buttons.c @@ -621,7 +621,8 @@ byte Button_Quit_local_function(void) do { - clicked_button=Window_clicked_button(); + Quit_is_required = 0; // ignore other QUIT messages from the system + clicked_button = Window_clicked_button(); if (Is_shortcut(Key,0x100+BUTTON_HELP)) Window_help(BUTTON_QUIT, NULL); else if (Is_shortcut(Key,0x100+BUTTON_QUIT))