1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Do not allow stealing input focus from ourselves

This commit is contained in:
Ivan Savenko 2023-12-24 22:01:22 +02:00
parent 8c4de0d093
commit 28a3deb42b

View File

@ -801,6 +801,9 @@ void CFocusable::moveFocus()
if(i == focusables.end())
i = focusables.begin();
if (*i == this)
return;
if((*i)->isActive())
{
(*i)->giveFocus();