equal
deleted
inserted
replaced
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 } |