QTfrontend/hwform.cpp
changeset 5772 c09c50efe8b5
parent 5763 d7a887c7e2d0
child 5773 c277657854a2
equal deleted inserted replaced
5771:e3a047e84e19 5772:c09c50efe8b5
   624     } else {
   624     } else {
   625         curTeamSelWidget = ui.pageNetGame->pNetTeamsWidget;
   625         curTeamSelWidget = ui.pageNetGame->pNetTeamsWidget;
   626     }
   626     }
   627 
   627 
   628     QStringList tmnames;
   628     QStringList tmnames;
   629     QListIterator<HWTeam> it(curTeamSelWidget->getDontPlayingTeams());
   629 
   630     while(it.hasNext()) tmnames += it.next().TeamName;
   630     foreach(HWTeam team, curTeamSelWidget->getDontPlayingTeams())
       
   631         tmnames += team.TeamName;
   631 
   632 
   632     //UpdateTeamsLists(&tmnames); // FIXME: still need more work if teamname is updated while configuring
   633     //UpdateTeamsLists(&tmnames); // FIXME: still need more work if teamname is updated while configuring
   633     UpdateTeamsLists();
   634     UpdateTeamsLists();
   634 
   635 
   635     GoToPage(ID_PAGE_SETUP);
   636     GoToPage(ID_PAGE_SETUP);