mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 18:59:59 +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())
|
||||
return false;
|
||||
|
||||
if (ActiveChild()->OnEvent(event))
|
||||
if (ActiveChild() && ActiveChild()->OnEvent(event))
|
||||
return true;
|
||||
|
||||
return (this->*event_handler_)(event);
|
||||
|
Loading…
Reference in New Issue
Block a user