QTfrontend/hwform.cpp
changeset 5907 64ccc6be0ec5
parent 5865 35387d27f73a
child 5998 e8f44e9433f0
child 5999 dad168522e3b
--- a/QTfrontend/hwform.cpp	Wed Sep 14 22:39:39 2011 +0200
+++ b/QTfrontend/hwform.cpp	Thu Sep 15 00:47:05 2011 +0200
@@ -169,7 +169,7 @@
     connect(ui.pageEditTeam->BtnTeamSave, SIGNAL(clicked()), this, SLOT(TeamSave()));
     connect(ui.pageEditTeam->BtnTeamDiscard, SIGNAL(clicked()), this, SLOT(TeamDiscard()));
 
-    connect(ui.pageEditTeam->signalMapper, SIGNAL(mapped(const int &)), this, SLOT(RandomName(const int &)));
+    connect(ui.pageEditTeam->signalMapper2, SIGNAL(mapped(const int &)), this, SLOT(RandomName(const int &)));
     connect(ui.pageEditTeam->randTeamButton, SIGNAL(clicked()), this, SLOT(RandomNames()));
 
     connect(ui.pageMultiplayer->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
@@ -639,7 +639,7 @@
 
 void HWForm::NewTeam()
 {
-    editedTeam = new HWTeam("unnamed");
+    editedTeam = new HWTeam(QLineEdit::tr("unnamed"));
     editedTeam->SetToPage(this);
     GoToPage(ID_PAGE_SETUP_TEAM);
 }