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

@@ -5208,12 +5208,14 @@ void Button_Text(int btn)
}
clicked_button=Window_clicked_button();
if (Quit_is_required)
clicked_button = 12; // cancel
if (clicked_button==0)
{
if (Is_shortcut(Key,0x100+BUTTON_HELP))
Window_help(BUTTON_TEXT, NULL);
else if (Is_shortcut(Key,0x100+BUTTON_TEXT))
clicked_button=12;
clicked_button = 12; // cancel
}
switch(clicked_button)
{