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
This commit is contained in:
auria 2013-05-29 00:16:35 +00:00
parent b10897fa6b
commit ab2c534b36

View File

@ -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<ProgressBarWidget>("progress");
m_install_button = getWidget<IconButtonWidget> ("install" );
m_back_button = getWidget<IconButtonWidget> ("back" );
m_back_button->setFocusForPlayer( PLAYER_ID_GAME_MASTER );
if(m_progress)
m_progress->setVisible(false);