GameSignals: emit the gameRackChanged() signal even if this is not the last turn

This commit is contained in:
Olivier Teulière 2013-01-09 17:39:39 +01:00
parent 7a6ca367fb
commit c76c84e059

View file

@ -69,7 +69,7 @@ void GameSignals::notifyGameUpdated()
emit newTurn(currTurn); emit newTurn(currTurn);
} }
// Emit the gameRackChanged() signal if needed // Emit the gameRackChanged() signal if needed
if (isLastTurn && m_game->getCurrentRack().toString(PlayedRack::RACK_EXTRA) != m_lastGameRack.toString(PlayedRack::RACK_EXTRA)) if (m_game->getCurrentRack().toString(PlayedRack::RACK_EXTRA) != m_lastGameRack.toString(PlayedRack::RACK_EXTRA))
{ {
m_lastGameRack = m_game->getCurrentRack(); m_lastGameRack = m_game->getCurrentRack();
LOG_DEBUG("Emitting gameRackChanged(" << lfw(m_lastGameRack.toString()) << ")"); LOG_DEBUG("Emitting gameRackChanged(" << lfw(m_lastGameRack.toString()) << ")");