summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-10-18 18:10:19 +0100
committerSky <git@bunnies.cc>2013-10-18 18:10:19 +0100
commit709252fe9ecec3cc388966d695844f2593029c4f (patch)
tree6b88cdc9e27bf9a4b3ff719fd8113680d9436ac6 /gui
parent205570be32b5cbd40eeb2b7e2d8d4fe116b07f64 (diff)
downloadMultiMC-709252fe9ecec3cc388966d695844f2593029c4f.tar
MultiMC-709252fe9ecec3cc388966d695844f2593029c4f.tar.gz
MultiMC-709252fe9ecec3cc388966d695844f2593029c4f.tar.lz
MultiMC-709252fe9ecec3cc388966d695844f2593029c4f.tar.xz
MultiMC-709252fe9ecec3cc388966d695844f2593029c4f.zip
Use player username if offline, or "Player" if blank
Diffstat (limited to 'gui')
-rw-r--r--gui/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index ae244d91..d99210a9 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -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);
}