QTfrontend/hwform.cpp
changeset 5140 932307228d05
parent 5126 50803f3403a5
child 5147 a2ae7702bb75
--- 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();