num hedgehogs while new team addition (dirty) fixed
authordisplacer
Sat, 26 May 2007 20:00:29 +0000
changeset 523 eddcef907b28
parent 522 ca089787f59d
child 524 c3b3d9ff7bb2
num hedgehogs while new team addition (dirty) fixed
QTfrontend/teamselect.cpp
QTfrontend/teamselhelper.h
--- a/QTfrontend/teamselect.cpp	Sat May 26 16:49:37 2007 +0000
+++ b/QTfrontend/teamselect.cpp	Sat May 26 20:00:29 2007 +0000
@@ -35,6 +35,7 @@
 		     this, SLOT(netTeamStatusChanged(const HWTeam&)));
     connect(framePlaying->getTeamWidget(team), SIGNAL(hhNmChanged(const HWTeam&)),
 			    this, SLOT(hhNumChanged(const HWTeam&)));
+    dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team))->hhNumChanged();
     connect(framePlaying->getTeamWidget(team), SIGNAL(teamColorChanged(const HWTeam&)),
 			    this, SLOT(proxyTeamColorChanged(const HWTeam&)));
   } else {
@@ -159,6 +160,7 @@
   if(willBePlaying) {
     connect(framePlaying->getTeamWidget(team), SIGNAL(hhNmChanged(const HWTeam&)),
 	    this, SLOT(hhNumChanged(const HWTeam&)));
+    dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team))->hhNumChanged();
     connect(framePlaying->getTeamWidget(team), SIGNAL(teamColorChanged(const HWTeam&)),
 	    this, SLOT(proxyTeamColorChanged(const HWTeam&)));
     emit teamColorChanged(((TeamShowWidget*)framePlaying->getTeamWidget(team))->getTeam());
--- a/QTfrontend/teamselhelper.h	Sat May 26 16:49:37 2007 +0000
+++ b/QTfrontend/teamselhelper.h	Sat May 26 20:00:29 2007 +0000
@@ -48,10 +48,10 @@
 
  public slots:
  void changeTeamColor(QColor color=QColor());
+ void hhNumChanged();
 
  private slots:
  void activateTeam();
- void hhNumChanged();
 
  public:
  TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent);