Allow Windows Close (X) in more popup dialogs

- Settings
- Skins
- Copy Page
- Resolution
- Gradients
- Brush Effects
- Brush menu
- Effects
- Help / About
- Statistics
- Palette
- Palette Historgram
- 2nd palette menu
This commit is contained in:
Thomas Bernard
2019-02-01 01:09:50 +01:00
parent 79621855f9
commit e72bb8cab1
3 changed files with 18 additions and 18 deletions

View File

@@ -768,7 +768,7 @@ void Window_help(int section, const char *sub_section)
if (Is_shortcut(Key,0x100+BUTTON_HELP))
clicked_button=1;
}
while ((clicked_button!=1) && (Key!=KEY_RETURN));
while ((clicked_button!=1) && (Key!=KEY_RETURN) && !Quit_is_required);
Key=0;
Close_window();
@@ -1057,7 +1057,7 @@ void Button_Stats(int btn)
if (Is_shortcut(Key,0x200+BUTTON_HELP))
clicked_button=1;
}
while ( (clicked_button!=1) && (Key!=KEY_RETURN) );
while ( (clicked_button!=1) && (Key!=KEY_RETURN) && !Quit_is_required);
if(Key==KEY_RETURN)Key=0;