adding the same command twice bug fixed for net game
authordisplacer
Sun, 04 Feb 2007 15:04:56 +0000
changeset 384 29299ca39155
parent 383 09a8795105a4
child 385 9201c85f7ff4
adding the same command twice bug fixed for net game
QTfrontend/teamselect.cpp
--- 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&)));