From 3bea78e0abf3be4e2227113964c0632abed5f62c Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sat, 13 Jun 2026 15:23:44 -0700 Subject: [PATCH] fixes --- cockatrice/src/game_graphics/game_view.cpp | 7 +------ cockatrice/src/game_graphics/game_view.h | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) 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);