ignore QUIT messages from the system during the quit dialog

fixes http://pulkomandy.tk/projects/GrafX2/ticket/116
This commit is contained in:
Thomas Bernard 2019-05-19 00:04:26 +02:00
parent cbc6b96639
commit e3a923c2bc

View File

@ -621,7 +621,8 @@ byte Button_Quit_local_function(void)
do 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)) if (Is_shortcut(Key,0x100+BUTTON_HELP))
Window_help(BUTTON_QUIT, NULL); Window_help(BUTTON_QUIT, NULL);
else if (Is_shortcut(Key,0x100+BUTTON_QUIT)) else if (Is_shortcut(Key,0x100+BUTTON_QUIT))