QTfrontend/hwform.cpp
changeset 32 78bff13b11c0
parent 31 99888245a4e8
child 34 fbe30de53d1d
--- a/QTfrontend/hwform.cpp	Tue Dec 27 10:20:55 2005 +0000
+++ b/QTfrontend/hwform.cpp	Wed Dec 28 22:18:11 2005 +0000
@@ -251,8 +251,8 @@
 void HWForm::SimpleGame()
 {
 	game = new HWGame(ui.CBResolution->currentIndex(), ui.CBFullscreen->isChecked());
-	game->AddTeam("team.cfg");
-	game->AddTeam("team.cfg");
+	game->AddTeam("team");
+	game->AddTeam("team");
 	game->StartLocal();
 }
 
@@ -310,6 +310,7 @@
 	connect(hwnet, SIGNAL(Connected()), this, SLOT(GoToNetChat()));
 	connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &)));
 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
+	connect(hwnet, SIGNAL(ChangeInTeams(const QStringList &)), this, SLOT(ChangeInNetTeams(const QStringList &)));
 }
 
 void HWForm::NetDisconnect()
@@ -350,3 +351,10 @@
 {
 	hwnet->StartGame();
 }
+
+void HWForm::ChangeInNetTeams(const QStringList & teams)
+{
+	ui.listNetTeams->clear();
+	ui.listNetTeams->addItems(teams);
+}
+