Don't try to show modifications if there are not any installed.
This commit is contained in:
parent
941f76b607
commit
d6e4c5dc0a
1 changed files with 3 additions and 0 deletions
|
@ -350,6 +350,9 @@ void tmp_create_game::on_tab_select(twindow& window)
|
|||
|
||||
void tmp_create_game::on_mod_select(twindow& window)
|
||||
{
|
||||
if (find_widget<tlistbox>(&window, "mod_list", false).get_item_count() <= 0) // no modifications installed
|
||||
return;
|
||||
|
||||
create_engine_.set_current_mod_index(find_widget<tlistbox>(&window, "mod_list", false).get_selected_row());
|
||||
|
||||
show_description(window, create_engine_.current_extra(ng::create_engine::MOD).description);
|
||||
|
|
Loading…
Add table
Reference in a new issue