QTfrontend/hwform.cpp
changeset 231 c77b16e48273
parent 213 c5480c5b11ff
child 233 5c3fe8762edc
equal deleted inserted replaced
230:ff76ba0671f7 231:c77b16e48273
   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 {