mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 21:47:49 +00:00
Game Load: close dialog if you delete all savefiles
This commit is contained in:
parent
157a579014
commit
20e33d5c58
@ -357,6 +357,12 @@ void tgame_load::delete_button_callback(twindow& window)
|
||||
games_.erase(games_.begin() + index);
|
||||
|
||||
list.remove_row(index);
|
||||
|
||||
// Close the dialog if there are no more saves
|
||||
if(list.get_item_count() == 0) {
|
||||
window.set_retval(twindow::CANCEL);
|
||||
}
|
||||
|
||||
display_savegame(window);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user