QTfrontend/hwform.cpp
changeset 5772 c09c50efe8b5
parent 5763 d7a887c7e2d0
child 5773 c277657854a2
--- a/QTfrontend/hwform.cpp	Sun Sep 04 13:36:59 2011 -0400
+++ b/QTfrontend/hwform.cpp	Sun Sep 04 21:39:50 2011 +0400
@@ -626,8 +626,9 @@
     }
 
     QStringList tmnames;
-    QListIterator<HWTeam> it(curTeamSelWidget->getDontPlayingTeams());
-    while(it.hasNext()) tmnames += it.next().TeamName;
+
+    foreach(HWTeam team, curTeamSelWidget->getDontPlayingTeams())
+        tmnames += team.TeamName;
 
     //UpdateTeamsLists(&tmnames); // FIXME: still need more work if teamname is updated while configuring
     UpdateTeamsLists();