Use player username if offline, or "Player" if blank
This commit is contained in:
parent
205570be32
commit
709252fe9e
@ -487,8 +487,8 @@ void MainWindow::doLogin(const QString &errorMsg)
|
|||||||
{
|
{
|
||||||
QString user = loginDlg->getUsername();
|
QString user = loginDlg->getUsername();
|
||||||
if (user.length() == 0)
|
if (user.length() == 0)
|
||||||
user = QString("Offline");
|
user = QString("Player");
|
||||||
m_activeLogin = {user, QString("Offline"), QString("Player"), QString()};
|
m_activeLogin = {user, QString("Offline"), user, QString()};
|
||||||
m_activeInst = m_selectedInstance;
|
m_activeInst = m_selectedInstance;
|
||||||
launchInstance(m_activeInst, m_activeLogin);
|
launchInstance(m_activeInst, m_activeLogin);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user