Skip to content

Commit

Permalink
MP Create Game: fixed game settings widgets not having correct active…
Browse files Browse the repository at this point in the history
… state for first game selection

It seems that update_map_settings can't set their widgets' active states if they're not visible, though for some
reason the values were set correctly.
  • Loading branch information
Vultraz committed Feb 24, 2017
1 parent 4bd0362 commit 6a763a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gui/dialogs/multiplayer/mp_create_game.cpp
Expand Up @@ -318,7 +318,7 @@ void mp_create_game::pre_show(window& win)
dialog_callback<mp_create_game, &mp_create_game::on_tab_select>);
#endif

on_tab_select(win);
// We call on_tab_select farther down.

//
// Main games list
Expand All @@ -336,9 +336,12 @@ void mp_create_game::pre_show(window& win)

win.add_to_keyboard_chain(&list);

// This handles both the initial game and tab selection
// This handles the initial game selection as well
display_games_of_type(win, level_types_[get_initial_type_index()].first, preferences::level());

// Initial tab selection must be done after game selection so the field widgets are set to their correct active state.
on_tab_select(win);

//
// Set up the Lua plugin context
//
Expand Down

0 comments on commit 6a763a0

Please sign in to comment.