From 6a763a05b4c55d620f7d643d920400adf15246e3 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Fri, 24 Feb 2017 18:48:16 +1100 Subject: [PATCH] MP Create Game: fixed game settings widgets not having correct active 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. --- src/gui/dialogs/multiplayer/mp_create_game.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/dialogs/multiplayer/mp_create_game.cpp b/src/gui/dialogs/multiplayer/mp_create_game.cpp index 17807b4c7f19..64e903ea7b1c 100644 --- a/src/gui/dialogs/multiplayer/mp_create_game.cpp +++ b/src/gui/dialogs/multiplayer/mp_create_game.cpp @@ -318,7 +318,7 @@ void mp_create_game::pre_show(window& win) dialog_callback); #endif - on_tab_select(win); + // We call on_tab_select farther down. // // Main games list @@ -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 //