QTfrontend/hwform.cpp
changeset 233 5c3fe8762edc
parent 231 c77b16e48273
child 245 4f6b53b7a567
equal deleted inserted replaced
232:e6ae904c050a 233:5c3fe8762edc
   122 	QStringList tmNames=config->GetTeamsList();
   122 	QStringList tmNames=config->GetTeamsList();
   123 	QList<HWTeam> teamsList;
   123 	QList<HWTeam> teamsList;
   124 	for(QStringList::iterator it=tmNames.begin(); it!=tmNames.end(); it++) {
   124 	for(QStringList::iterator it=tmNames.begin(); it!=tmNames.end(); it++) {
   125 	  HWTeam team(*it);
   125 	  HWTeam team(*it);
   126 	  team.LoadFromFile();
   126 	  team.LoadFromFile();
       
   127 	  team.TeamName=*it; // FIXME: we can have different different teamnames in config files
   127 	  teamsList.push_back(team);
   128 	  teamsList.push_back(team);
   128 	}
   129 	}
   129 	ui.pageMultiplayer->teamsSelect->resetPlayingTeams(teamsList);
   130 	ui.pageMultiplayer->teamsSelect->resetPlayingTeams(teamsList);
   130 	ui.Pages->setCurrentIndex(ID_PAGE_MULTIPLAYER);
   131 	ui.Pages->setCurrentIndex(ID_PAGE_MULTIPLAYER);
   131 }
   132 }