GameSignals: simplify slightly

This commit is contained in:
Olivier Teulière 2013-01-09 16:04:32 +01:00
parent 99e7628fed
commit f37b3f7d84

View file

@ -21,7 +21,6 @@
#include "game_signals.h" #include "game_signals.h"
#include "public_game.h" #include "public_game.h"
#include "history.h"
#include "encoding.h" #include "encoding.h"
#include "debug.h" #include "debug.h"
@ -70,9 +69,9 @@ 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->getHistory().getCurrentRack().toString(PlayedRack::RACK_EXTRA) != m_lastGameRack.toString(PlayedRack::RACK_EXTRA)) if (isLastTurn && m_game->getCurrentRack().toString(PlayedRack::RACK_EXTRA) != m_lastGameRack.toString(PlayedRack::RACK_EXTRA))
{ {
m_lastGameRack = m_game->getHistory().getCurrentRack(); m_lastGameRack = m_game->getCurrentRack();
LOG_DEBUG("Emitting gameRackChanged(" << lfw(m_lastGameRack.toString()) << ")"); LOG_DEBUG("Emitting gameRackChanged(" << lfw(m_lastGameRack.toString()) << ")");
emit gameRackChanged(m_lastGameRack); emit gameRackChanged(m_lastGameRack);
} }