QTfrontend/teamselect.cpp
changeset 384 29299ca39155
parent 383 09a8795105a4
child 387 66345e38826d
--- a/QTfrontend/teamselect.cpp	Sun Feb 04 14:35:28 2007 +0000
+++ b/QTfrontend/teamselect.cpp	Sun Feb 04 15:04:56 2007 +0000
@@ -145,8 +145,13 @@
 
   pAddTeams->addTeam(team, willBePlaying);
   pRemoveTeams->removeTeam(team);
-  QObject::connect(pAddTeams->getTeamWidget(team), SIGNAL(teamStatusChanged(HWTeam)),
-		   this, SLOT(changeTeamStatus(HWTeam)));
+  if(!team.isNetTeam() && m_acceptOuter && !willBePlaying) {
+    connect(frameDontPlaying->getTeamWidget(team), SIGNAL(teamStatusChanged(HWTeam)),
+	    this, SLOT(pre_changeTeamStatus(HWTeam)));
+  } else {
+    connect(pAddTeams->getTeamWidget(team), SIGNAL(teamStatusChanged(HWTeam)),
+	    this, SLOT(changeTeamStatus(HWTeam)));
+  }
   if(willBePlaying) {
     connect(framePlaying->getTeamWidget(team), SIGNAL(hhNmChanged(const HWTeam&)), 
 	    this, SLOT(hhNumChanged(const HWTeam&)));