mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-26 04:31:34 +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 {
|
bool OnMouseEvent(Event event) override {
|
||||||
return ActiveChild()->OnEvent(event);
|
return ActiveChild() && ActiveChild()->OnEvent(event);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user