Made Offline user name default to 'Offline' if the textbox is left empty
This commit is contained in:
parent
f897a200e2
commit
0990a1103c
@ -492,7 +492,10 @@ void MainWindow::doLogin(const QString& errorMsg)
|
||||
}
|
||||
else
|
||||
{
|
||||
m_activeLogin = {loginDlg->getUsername(), QString("Offline"), qint64(-1)};
|
||||
QString user = loginDlg->getUsername();
|
||||
if (user.length() == 0)
|
||||
user = QString("Offline");
|
||||
m_activeLogin = {user, QString("Offline"), qint64(-1)};
|
||||
m_activeInst = m_selectedInstance;
|
||||
launchInstance(m_activeInst, m_activeLogin);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user