--- 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();
}