From 533b26f23bdc56a79783a9aea18803a66bf75067 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 14 May 2024 15:51:01 +0000 Subject: [PATCH] Fix build --- client/CFocusableHelper.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/CFocusableHelper.cpp b/client/CFocusableHelper.cpp index 20400a714..ea0297eca 100644 --- a/client/CFocusableHelper.cpp +++ b/client/CFocusableHelper.cpp @@ -9,14 +9,10 @@ */ #include "StdInc.h" #include "CFocusableHelper.h" -#include "../Global.h" #include "widgets/CTextInput.h" void removeFocusFromActiveInput() { - if(CFocusable::inputWithFocus == nullptr) - return; - CFocusable::inputWithFocus->focus = false; - CFocusable::inputWithFocus->redraw(); - CFocusable::inputWithFocus = nullptr; + if(CFocusable::inputWithFocus != nullptr) + CFocusable::inputWithFocus->removeFocus(); }