QTfrontend/hwform.cpp
changeset 8136 c2196b1dccb4
parent 8098 4efee370e2de
child 8140 a098374b847b
--- a/QTfrontend/hwform.cpp	Wed Nov 28 10:57:07 2012 -0500
+++ b/QTfrontend/hwform.cpp	Thu Nov 29 04:57:35 2012 +0100
@@ -453,9 +453,19 @@
 
     if(teamslist.empty())
     {
-        HWTeam defaultTeam(tr("DefaultTeam"));
+        QString currentNickName = gameSettings->value("net/nick","").toString().toUtf8();
+        QString teamName;
+        if (currentNickName == "")
+        {
+            teamName = tr("DefaultTeam");
+        }
+        else
+        {
+            teamName = tr("%1's Team").arg(currentNickName);
+        }
+        HWTeam defaultTeam(teamName);
         defaultTeam.saveToFile();
-        teamslist.push_back(tr("DefaultTeam"));
+        teamslist.push_back(teamName);
     }
 
     ui.pageOptions->CBTeamName->clear();