--- a/QTfrontend/teamselect.cpp Mon Apr 11 01:30:43 2011 +0200
+++ b/QTfrontend/teamselect.cpp Mon Apr 11 11:22:10 2011 -0400
@@ -243,7 +243,6 @@
void TeamSelWidget::resetPlayingTeams(const QList<HWTeam>& teamslist)
{
- QList<HWTeam>::iterator it;
//for(it=curPlayingTeams.begin(); it!=curPlayingTeams.end(); it++) {
//framePlaying->removeTeam(*it);
//}
@@ -256,9 +255,8 @@
frameDontPlaying->resetTeams();
curDontPlayingTeams.clear();
- for (QList<HWTeam>::ConstIterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
- addTeam(*it);
- }
+ QListIterator<HWTeam> it(teamslist);
+ while(it.hasNext()) addTeam(it.next());
}
bool TeamSelWidget::isPlaying(HWTeam team) const