summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/mainwidget.cpp')
-rw-r--r--pacman-c++/mainwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pacman-c++/mainwidget.cpp b/pacman-c++/mainwidget.cpp
index daa5806..705a3ca 100644
--- a/pacman-c++/mainwidget.cpp
+++ b/pacman-c++/mainwidget.cpp
@@ -72,9 +72,10 @@ void MainWidget::createGui()
72 QGroupBox *scoreBox = new QGroupBox(QString("Player %1").arg(i + 1), this); 72 QGroupBox *scoreBox = new QGroupBox(QString("Player %1").arg(i + 1), this);
73 scoreBox->setObjectName(QString("actor%1").arg(i + 1)); 73 scoreBox->setObjectName(QString("actor%1").arg(i + 1));
74 scoreBox->setCheckable(true); 74 scoreBox->setCheckable(true);
75 scoreBox->setDisabled(i >= m_maxplayers);
75 connect(scoreBox, SIGNAL(clicked()), this, SLOT(playerScoreClicked())); 76 connect(scoreBox, SIGNAL(clicked()), this, SLOT(playerScoreClicked()));
77
76 scoreBox->setLayout(playerLayout); 78 scoreBox->setLayout(playerLayout);
77 scoreBox->setDisabled(i >= m_maxplayers);
78 m_playerScoreLayouts.append(playerLayout); 79 m_playerScoreLayouts.append(playerLayout);
79 80
80 if (Color::order[i] == m_scene->color()) 81 if (Color::order[i] == m_scene->color())