add a cancel button to status table because:
- closing with enter now cause a scrolling - it allow to close it with esc and outside right click
This commit is contained in:
parent
7d2019dd9c
commit
6d2e26c743
1 changed files with 2 additions and 2 deletions
|
@ -464,12 +464,12 @@ namespace events{
|
|||
|
||||
int selected = 0;
|
||||
{
|
||||
gui::dialog slist(*gui_, "", "", gui::OK_ONLY);
|
||||
gui::dialog slist(*gui_, "", "", gui::OK_CANCEL);
|
||||
slist.set_menu(items, &sorter);
|
||||
selected = slist.show();
|
||||
} // this will kill the dialog before scrolling
|
||||
|
||||
gui_->scroll_to_leader(units_, selected+1);
|
||||
if (selected >= 0) gui_->scroll_to_leader(units_, selected+1);
|
||||
}
|
||||
|
||||
void menu_handler::save_game(const std::string& message, gui::DIALOG_TYPE dialog_type,
|
||||
|
|
Loading…
Add table
Reference in a new issue