QTfrontend/ui/widget/teamselect.cpp
changeset 12688 e095ed002652
parent 12298 91ebbadc461d
child 13230 d5a029299407
--- a/QTfrontend/ui/widget/teamselect.cpp	Wed Oct 11 01:03:30 2017 +0200
+++ b/QTfrontend/ui/widget/teamselect.cpp	Wed Oct 11 01:23:38 2017 +0200
@@ -43,6 +43,12 @@
         blockSignals(false);
         connect(framePlaying->getTeamWidget(team), SIGNAL(teamColorChanged(const HWTeam&)),
                 this, SLOT(proxyTeamColorChanged(const HWTeam&)));
+
+        // Hide team notice if at least two teams.
+        if (curPlayingTeams.size() >= 2)
+        {
+            numTeamNotice->hide();
+        }
     }
     else
     {
@@ -133,6 +139,11 @@
         QObject::disconnect(framePlaying->getTeamWidget(*itPlay), SIGNAL(teamStatusChanged(HWTeam)));
         framePlaying->removeTeam(team);
         curPlayingTeams.erase(itPlay);
+        // Show team notice if less than two teams.
+        if (curPlayingTeams.size() < 2)
+        {
+            numTeamNotice->show();
+        }
     }
     else
     {
@@ -294,6 +305,8 @@
     foreach(HWTeam team, teamslist)
         addTeam(team);
 
+    numTeamNotice->show();
+
     repaint();
 }