mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fix build
This commit is contained in:
parent
d374cec6fb
commit
533b26f23b
@ -9,14 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
#include "StdInc.h"
|
#include "StdInc.h"
|
||||||
#include "CFocusableHelper.h"
|
#include "CFocusableHelper.h"
|
||||||
#include "../Global.h"
|
|
||||||
#include "widgets/CTextInput.h"
|
#include "widgets/CTextInput.h"
|
||||||
|
|
||||||
void removeFocusFromActiveInput()
|
void removeFocusFromActiveInput()
|
||||||
{
|
{
|
||||||
if(CFocusable::inputWithFocus == nullptr)
|
if(CFocusable::inputWithFocus != nullptr)
|
||||||
return;
|
CFocusable::inputWithFocus->removeFocus();
|
||||||
CFocusable::inputWithFocus->focus = false;
|
|
||||||
CFocusable::inputWithFocus->redraw();
|
|
||||||
CFocusable::inputWithFocus = nullptr;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user