From ab2c534b36ef4ef9115260617fb558eee3bc7152 Mon Sep 17 00:00:00 2001 From: auria Date: Wed, 29 May 2013 00:16:35 +0000 Subject: [PATCH] Apply patch by KroArtem to correctly focus a widget inside the dialog, thanks! git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12794 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/dialogs/addons_loading.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/states_screens/dialogs/addons_loading.cpp b/src/states_screens/dialogs/addons_loading.cpp index 56ace7b99..502a353f7 100644 --- a/src/states_screens/dialogs/addons_loading.cpp +++ b/src/states_screens/dialogs/addons_loading.cpp @@ -31,6 +31,7 @@ #include "io/file_manager.hpp" #include "states_screens/addons_screen.hpp" #include "states_screens/dialogs/message_dialog.hpp" +#include "states_screens/state_manager.hpp" #include "tracks/track_manager.hpp" #include "utils/string_utils.hpp" #include "utils/translation.hpp" @@ -56,7 +57,8 @@ AddonsLoading::AddonsLoading(const float w, const float h, m_progress = getWidget("progress"); m_install_button = getWidget ("install" ); m_back_button = getWidget ("back" ); - + m_back_button->setFocusForPlayer( PLAYER_ID_GAME_MASTER ); + if(m_progress) m_progress->setVisible(false);