Fixed initialization of the scores widget

This commit is contained in:
Olivier Teulière 2012-01-20 13:30:57 +01:00
parent 22f4341bdd
commit 765b57b781

View file

@ -338,7 +338,7 @@ void MainWindow::updateForGame(PublicGame *iGame)
linkTrainingAnd7P1();
// Players score
m_scoresWidget = new ScoreWidget;
m_scoresWidget = new ScoreWidget(NULL, iGame);
m_ui.groupBoxPlayers->layout()->addWidget(m_scoresWidget);
QObject::connect(this, SIGNAL(gameUpdated()),
m_scoresWidget, SLOT(refresh()));
@ -367,7 +367,7 @@ void MainWindow::updateForGame(PublicGame *iGame)
m_playersWidget->setGame(iGame);
// Players score
m_scoresWidget = new ScoreWidget;
m_scoresWidget = new ScoreWidget(NULL, iGame);
m_ui.groupBoxPlayers->layout()->addWidget(m_scoresWidget);
QObject::connect(this, SIGNAL(gameUpdated()),
m_scoresWidget, SLOT(refresh()));