Fix crash on empty tab container. (#540)

This commit is contained in:
Matthias Vallentin
2022-12-30 16:31:47 +01:00
committed by GitHub
parent b56afce48c
commit 9f9571190a

View File

@@ -229,7 +229,7 @@ class TabContainer : public ContainerBase {
}
bool OnMouseEvent(Event event) override {
return ActiveChild()->OnEvent(event);
return ActiveChild() && ActiveChild()->OnEvent(event);
}
};