mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-10-30 16:07:38 +08:00
Fix crash on empty tab container. (#540)
This commit is contained in:
parent
b56afce48c
commit
9f9571190a
@ -229,7 +229,7 @@ class TabContainer : public ContainerBase {
|
||||
}
|
||||
|
||||
bool OnMouseEvent(Event event) override {
|
||||
return ActiveChild()->OnEvent(event);
|
||||
return ActiveChild() && ActiveChild()->OnEvent(event);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user