QTfrontend/hwform.cpp
changeset 5140 932307228d05
parent 5126 50803f3403a5
child 5147 a2ae7702bb75
equal deleted inserted replaced
5139:090a8b8d1083 5140:932307228d05
   591         curTeamSelWidget = ui.pageMultiplayer->teamsSelect;
   591         curTeamSelWidget = ui.pageMultiplayer->teamsSelect;
   592     } else {
   592     } else {
   593         curTeamSelWidget = ui.pageNetGame->pNetTeamsWidget;
   593         curTeamSelWidget = ui.pageNetGame->pNetTeamsWidget;
   594     }
   594     }
   595 
   595 
   596     QList<HWTeam> teams = curTeamSelWidget->getDontPlayingTeams();
       
   597     QStringList tmnames;
   596     QStringList tmnames;
   598     for(QList<HWTeam>::iterator it = teams.begin(); it != teams.end(); ++it) {
   597     QListIterator<HWTeam> it(curTeamSelWidget->getDontPlayingTeams());
   599         tmnames += it->TeamName;
   598     while(it.hasNext()) tmnames += it.next().TeamName;
   600     }
   599 
   601     //UpdateTeamsLists(&tmnames); // FIXME: still need more work if teamname is updated while configuring
   600     //UpdateTeamsLists(&tmnames); // FIXME: still need more work if teamname is updated while configuring
   602     UpdateTeamsLists();
   601     UpdateTeamsLists();
   603 
   602 
   604     GoToPage(ID_PAGE_SETUP);
   603     GoToPage(ID_PAGE_SETUP);
   605 }
   604 }