Skip to content

Commit

Permalink
clear focus when changing phases (#2583)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeldaZach committed Apr 15, 2017
1 parent 2e9a0bd commit dc6c375
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cockatrice/src/tab_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,10 @@ void TabGame::processGameEventContainer(const GameEventContainer &cont, Abstract
case GameEvent::GAME_HOST_CHANGED: eventGameHostChanged(event.GetExtension(Event_GameHostChanged::ext), playerId, context); break;
case GameEvent::GAME_CLOSED: eventGameClosed(event.GetExtension(Event_GameClosed::ext), playerId, context); break;
case GameEvent::SET_ACTIVE_PLAYER: eventSetActivePlayer(event.GetExtension(Event_SetActivePlayer::ext), playerId, context); break;
case GameEvent::SET_ACTIVE_PHASE: eventSetActivePhase(event.GetExtension(Event_SetActivePhase::ext), playerId, context); break;
case GameEvent::SET_ACTIVE_PHASE:
sayEdit->clearFocus();
eventSetActivePhase(event.GetExtension(Event_SetActivePhase::ext), playerId, context);
break;

default: {
Player *player = players.value(playerId, 0);
Expand Down

0 comments on commit dc6c375

Please sign in to comment.