diff --git a/cockatrice/src/game_graphics/game_view.cpp b/cockatrice/src/game_graphics/game_view.cpp index 1bcbee7c6..41befd9a4 100644 --- a/cockatrice/src/game_graphics/game_view.cpp +++ b/cockatrice/src/game_graphics/game_view.cpp @@ -1,7 +1,6 @@ #include "game_view.h" #include "../client/settings/cache_settings.h" -#include "../game/game.h" #include "game_scene.h" #include @@ -196,9 +195,5 @@ void GameView::updateTotalSelectionCount(const QSize &viewSize) */ void GameView::setFocusDisabled(bool disabled) { - if (disabled) { - setFocusPolicy(Qt::NoFocus); - } else { - setFocusPolicy(Qt::ClickFocus); - } + setFocusPolicy(disabled ? Qt::NoFocus : Qt::ClickFocus); } diff --git a/cockatrice/src/game_graphics/game_view.h b/cockatrice/src/game_graphics/game_view.h index 50af9b00d..80e8e96b5 100644 --- a/cockatrice/src/game_graphics/game_view.h +++ b/cockatrice/src/game_graphics/game_view.h @@ -31,7 +31,7 @@ private slots: void stopRubberBand(); void refreshShortcuts(); void updateTotalSelectionCount(const QSize &viewSize = QSize()); - void setFocusDisabled(bool focusEnabled); + void setFocusDisabled(bool disabled); public slots: void updateSceneRect(const QRectF &rect);