Small sequence fault in setting the error color, when a server mistake occurs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13539 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
ff877b60ca
commit
225994df55
@ -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<LabelWidget>("info");
|
||||
assert(m_info_widget != NULL);
|
||||
if(m_error)
|
||||
m_info_widget->setErrorColor();
|
||||
m_info_widget->setText(m_info, false);
|
||||
m_options_widget = getWidget<RibbonWidget>("options");
|
||||
assert(m_options_widget != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user