equal
deleted
inserted
replaced
117 ui.Pages->setCurrentIndex(ID_PAGE_INFO); |
117 ui.Pages->setCurrentIndex(ID_PAGE_INFO); |
118 } |
118 } |
119 |
119 |
120 void HWForm::GoToMultiplayer() |
120 void HWForm::GoToMultiplayer() |
121 { |
121 { |
122 ui.pageMultiplayer->teamsSelect->resetPlayingTeams(config->GetTeamsList()); |
122 QStringList tmNames=config->GetTeamsList(); |
|
123 QList<HWTeam> teamsList; |
|
124 for(QStringList::iterator it=tmNames.begin(); it!=tmNames.end(); it++) { |
|
125 HWTeam team(*it); |
|
126 team.LoadFromFile(); |
|
127 teamsList.push_back(team); |
|
128 } |
|
129 ui.pageMultiplayer->teamsSelect->resetPlayingTeams(teamsList); |
123 ui.Pages->setCurrentIndex(ID_PAGE_MULTIPLAYER); |
130 ui.Pages->setCurrentIndex(ID_PAGE_MULTIPLAYER); |
124 } |
131 } |
125 |
132 |
126 void HWForm::GoToDemos() |
133 void HWForm::GoToDemos() |
127 { |
134 { |