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:
Ali El Gariani 2007-07-06 20:12:28 +00:00
parent 7d2019dd9c
commit 6d2e26c743

View file

@ -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,