diff --git a/src/states_screens/dialogs/user_info_dialog.cpp b/src/states_screens/dialogs/user_info_dialog.cpp index 38ef2e833..850418979 100644 --- a/src/states_screens/dialogs/user_info_dialog.cpp +++ b/src/states_screens/dialogs/user_info_dialog.cpp @@ -45,6 +45,8 @@ UserInfoDialog::UserInfoDialog(uint32_t showing_id, const core::stringw info, bo void UserInfoDialog::load() { loadFromFile("online/user_info_dialog.stkgui"); + if(m_error) + m_info_widget->setErrorColor(); } void UserInfoDialog::beforeAddingWidgets() @@ -58,8 +60,6 @@ void UserInfoDialog::beforeAddingWidgets() m_name_widget->setText(m_profile->getUserName(),false); m_info_widget = getWidget("info"); assert(m_info_widget != NULL); - if(m_error) - m_info_widget->setErrorColor(); m_info_widget->setText(m_info, false); m_options_widget = getWidget("options"); assert(m_options_widget != NULL);