phases toolbar improvement

This commit is contained in:
Max-Wilhelm Bruker 2009-08-28 15:28:25 +02:00
parent a5280946c2
commit 0dbc580b8a
6 changed files with 33 additions and 18 deletions

View file

@ -294,8 +294,10 @@ void Game::gameEvent(const ServerEventData &msg)
case eventSetActivePhase: {
QStringList data = msg.getEventData();
int phase = data[0].toInt();
currentPhase = phase;
emit setActivePhase(phase);
if (currentPhase != phase) {
currentPhase = phase;
emit setActivePhase(phase);
}
break;
}