Use player username if offline, or "Player" if blank

This commit is contained in:
Sky 2013-10-18 18:10:19 +01:00
parent 205570be32
commit 709252fe9e

View File

@ -487,8 +487,8 @@ void MainWindow::doLogin(const QString &errorMsg)
{
QString user = loginDlg->getUsername();
if (user.length() == 0)
user = QString("Offline");
m_activeLogin = {user, QString("Offline"), QString("Player"), QString()};
user = QString("Player");
m_activeLogin = {user, QString("Offline"), user, QString()};
m_activeInst = m_selectedInstance;
launchInstance(m_activeInst, m_activeLogin);
}