Before notifying our window that a child was removed, we should first check that we actually have a window! :^)
@@ -123,7 +123,7 @@ void Widget::child_event(Core::ChildEvent& event)
else
invalidate_layout();
}
- if (event.child() && Core::is<Widget>(*event.child()))
+ if (window() && event.child() && Core::is<Widget>(*event.child()))
window()->did_remove_widget({}, Core::to<Widget>(*event.child()));
update();