# HG changeset patch
# User displacer
# Date 1170601496 0
# Node ID 29299ca39155e116ca33d880b20557448ce0a97d
# Parent  09a8795105a49031b27b4bfd08f02d45adf416e2
adding the same command twice bug fixed for net game

diff -r 09a8795105a4 -r 29299ca39155 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&)));