Bugfix: A user that was not online previously could not enter an online

username if a user with an online user name was shown before.
This commit is contained in:
hiker
2015-02-26 16:29:10 +11:00
parent 58d9853542
commit 832aefeceb

View File

@@ -280,6 +280,10 @@ void BaseUserScreen::makeEntryFieldsVisible()
{
getWidget<LabelWidget>("label_password")->setVisible(online);
m_password_tb->setVisible(online);
// Is user has no online name, make sure the user can enter one
if (player->getLastOnlineName().empty())
m_username_tb->setActivated();
}
} // makeEntryFieldsVisible