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:
parent
8c4de0d093
commit
28a3deb42b
@ -801,6 +801,9 @@ void CFocusable::moveFocus()
|
||||
if(i == focusables.end())
|
||||
i = focusables.begin();
|
||||
|
||||
if (*i == this)
|
||||
return;
|
||||
|
||||
if((*i)->isActive())
|
||||
{
|
||||
(*i)->giveFocus();
|
||||
|
Loading…
Reference in New Issue
Block a user