QTfrontend/hwform.cpp
changeset 231 c77b16e48273
parent 213 c5480c5b11ff
child 233 5c3fe8762edc
--- a/QTfrontend/hwform.cpp	Fri Nov 10 20:41:12 2006 +0000
+++ b/QTfrontend/hwform.cpp	Sun Nov 12 20:15:58 2006 +0000
@@ -119,7 +119,14 @@
 
 void HWForm::GoToMultiplayer()
 {
-	ui.pageMultiplayer->teamsSelect->resetPlayingTeams(config->GetTeamsList());
+	QStringList tmNames=config->GetTeamsList();
+	QList<HWTeam> teamsList;
+	for(QStringList::iterator it=tmNames.begin(); it!=tmNames.end(); it++) {
+	  HWTeam team(*it);
+	  team.LoadFromFile();
+	  teamsList.push_back(team);
+	}
+	ui.pageMultiplayer->teamsSelect->resetPlayingTeams(teamsList);
 	ui.Pages->setCurrentIndex(ID_PAGE_MULTIPLAYER);
 }