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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
} }
}; };