QTfrontend/hwform.cpp
changeset 12241 0b5aa545e058
parent 12220 a7c08e4748ff
child 12242 09010333c947
--- a/QTfrontend/hwform.cpp	Wed Apr 12 23:05:18 2017 +0200
+++ b/QTfrontend/hwform.cpp	Thu Apr 13 05:44:23 2017 +0200
@@ -462,9 +462,10 @@
         QString currentNickName = config->value("net/nick",tr("Guest")+QString("%1").arg(rand())).toString().toUtf8();
         QString teamName;
 
+        // Default team
         if (currentNickName.isEmpty())
         {
-            teamName = tr("DefaultTeam");
+            teamName = tr("Team 1");
         }
         else
         {
@@ -474,6 +475,15 @@
         HWTeam defaultTeam(teamName);
         defaultTeam.saveToFile();
         teamslist.push_back(teamName);
+
+        // Team 2, Team 3, Team 4
+        for(int i=2; i<=4; i++)
+        {
+            teamName = tr("Team %1").arg(i);
+            HWTeam numberTeam(teamName);
+            numberTeam.saveToFile();
+            teamslist.push_back(teamName);
+        }
     }
 
     ui.pageOptions->CBTeamName->clear();