1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix build

This commit is contained in:
Ivan Savenko 2024-05-14 15:51:01 +00:00
parent d374cec6fb
commit 533b26f23b

View File

@ -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();
}