Quick and dirty fix for fact that we no longer prompt for a username on connect, so blank username simply errors on connect.
authornemo
Fri, 24 May 2013 15:07:21 -0400
changeset 9055 45ebf126a5c2
parent 9054 707e40076be6
child 9056 79ca70a295ac
Quick and dirty fix for fact that we no longer prompt for a username on connect, so blank username simply errors on connect.
QTfrontend/gameuiconfig.cpp
--- a/QTfrontend/gameuiconfig.cpp	Fri May 24 12:56:58 2013 -0400
+++ b/QTfrontend/gameuiconfig.cpp	Fri May 24 15:07:21 2013 -0400
@@ -112,7 +112,7 @@
     Form->ui.pageOptions->CBFrontendMusic->setChecked(value("frontend/music", true).toBool());
     Form->ui.pageOptions->SLVolume->setValue(value("audio/volume", 100).toUInt());
 
-    QString netNick = value("net/nick", "").toString();
+    QString netNick = value("net/nick", tr("Guest")+QString("%1").arg(rand())).toString();
     Form->ui.pageOptions->editNetNick->setText(netNick);
     bool savePwd = value("net/savepassword",true).toBool();
     Form->ui.pageOptions->CBSavePassword->setChecked(savePwd);