Allow closing window in more dialog

see http://pulkomandy.tk/projects/GrafX2/ticket/141
see e72bb8cab1
This commit is contained in:
Thomas Bernard
2019-08-14 23:24:12 +02:00
parent 7f4e1a10eb
commit 24fee41e41
4 changed files with 13 additions and 7 deletions

View File

@@ -337,7 +337,7 @@ void Button_Transform_menu(int btn)
break;
}
}
while (clicked_button<=0 || clicked_button>=8);
while ((clicked_button<=0 || clicked_button>=8) && !Quit_is_required);
Close_window();
@@ -345,7 +345,7 @@ void Button_Transform_menu(int btn)
if (Current_operation != OPERATION_SCROLL)
Unselect_button(btn);
if (clicked_button != 1) // 1 is Cancel
if (clicked_button != 1 && !Quit_is_required) // 1 is Cancel
{
short old_width;
short old_height;