--- a/QTfrontend/hwform.cpp Mon Apr 11 01:30:43 2011 +0200
+++ b/QTfrontend/hwform.cpp Mon Apr 11 11:22:10 2011 -0400
@@ -593,11 +593,10 @@
curTeamSelWidget = ui.pageNetGame->pNetTeamsWidget;
}
- QList<HWTeam> teams = curTeamSelWidget->getDontPlayingTeams();
QStringList tmnames;
- for(QList<HWTeam>::iterator it = teams.begin(); it != teams.end(); ++it) {
- tmnames += it->TeamName;
- }
+ QListIterator<HWTeam> it(curTeamSelWidget->getDontPlayingTeams());
+ while(it.hasNext()) tmnames += it.next().TeamName;
+
//UpdateTeamsLists(&tmnames); // FIXME: still need more work if teamname is updated while configuring
UpdateTeamsLists();