mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-06 06:28:14 +08:00
Fix crash on empty tab container. (#540)
This commit is contained in:
committed by
GitHub
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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user