QTfrontend/ui/widget/teamselect.cpp
changeset 7145 1d1a14b39400
parent 6952 7f70f37bbf08
child 7523 0790527b4e00
--- a/QTfrontend/ui/widget/teamselect.cpp	Mon May 28 14:20:51 2012 -0400
+++ b/QTfrontend/ui/widget/teamselect.cpp	Mon May 28 22:42:59 2012 +0400
@@ -169,8 +169,8 @@
         // return if max playing teams reached
         if(framePlaying->isFullTeams()) return;
         // dont playing team => playing
+        itDontPlay->setColor(framePlaying->getNextColor());
         team=*itDontPlay; // for net team info saving in framePlaying (we have only name with netID from network)
-        itDontPlay->setColor(framePlaying->getNextColor());
         curPlayingTeams.push_back(*itDontPlay);
         if(!m_acceptOuter) emit teamWillPlay(*itDontPlay);
         m_curNotPlayingTeams.erase(itDontPlay);
@@ -295,6 +295,6 @@
 
 void TeamSelWidget::pre_changeTeamStatus(HWTeam team)
 {
-    team.setColor(framePlaying->getNextColor());
+    //team.setColor(framePlaying->getNextColor());
     emit acceptRequested(team);
 }