From 9ab0c3e066b2c0b48daed461e80c7bb22bc6803f Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 14 Apr 2011 23:29:50 +0200 Subject: fix wrong left shift which fixes the invisible fourth player :) --- pacman-c++/mainwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pacman-c++/mainwidget.cpp') 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() QGroupBox *scoreBox = new QGroupBox(QString("Player %1").arg(i + 1), this); scoreBox->setObjectName(QString("actor%1").arg(i + 1)); scoreBox->setCheckable(true); + scoreBox->setDisabled(i >= m_maxplayers); connect(scoreBox, SIGNAL(clicked()), this, SLOT(playerScoreClicked())); + scoreBox->setLayout(playerLayout); - scoreBox->setDisabled(i >= m_maxplayers); m_playerScoreLayouts.append(playerLayout); if (Color::order[i] == m_scene->color()) -- cgit v1.2.3