mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-23 03:10:01 +08:00
Fix OnEvent being called on Empty containers.
This commit is contained in:
parent
ede49fd5e7
commit
823e0906da
@ -37,7 +37,7 @@ bool Container::OnEvent(Event event) {
|
|||||||
if (!Focused())
|
if (!Focused())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (ActiveChild()->OnEvent(event))
|
if (ActiveChild() && ActiveChild()->OnEvent(event))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return (this->*event_handler_)(event);
|
return (this->*event_handler_)(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user