QTfrontend/teamselect.cpp
changeset 383 09a8795105a4
parent 382 e7220e48ead1
child 384 29299ca39155
--- a/QTfrontend/teamselect.cpp	Sat Feb 03 21:40:50 2007 +0000
+++ b/QTfrontend/teamselect.cpp	Sun Feb 04 14:35:28 2007 +0000
@@ -197,14 +197,16 @@
 void TeamSelWidget::resetPlayingTeams(const QList<HWTeam>& teamslist)
 {
   QList<HWTeam>::iterator it;
-  for(it=curPlayingTeams.begin(); it!=curPlayingTeams.end(); it++) {
-    framePlaying->removeTeam(*it);
-  }
+  //for(it=curPlayingTeams.begin(); it!=curPlayingTeams.end(); it++) {
+  //framePlaying->removeTeam(*it);
+  //}
+  framePlaying->resetTeams();
   framePlaying->resetColors();
   curPlayingTeams.clear();
-  for(it=curDontPlayingTeams.begin(); it!=curDontPlayingTeams.end(); it++) {
-    frameDontPlaying->removeTeam(*it);
-  }
+  //for(it=curDontPlayingTeams.begin(); it!=curDontPlayingTeams.end(); it++) {
+  //frameDontPlaying->removeTeam(*it);
+  //}
+  frameDontPlaying->resetTeams();
   curDontPlayingTeams.clear();
 
   for (QList<HWTeam>::ConstIterator it = teamslist.begin(); it != teamslist.end(); ++it ) {