Fix failing assert in ui::details::::removeWidget()

When running multiple UI tests, if the mouse was moved on a created
window, it made the ui::details::removeWidget() fail because the
widget was still ui::Manager::widgetAssociatedToManager().
This commit is contained in:
David Capello 2024-12-07 13:26:31 -03:00
parent 0e775bf06d
commit 4ba88ce49c

View File

@ -282,6 +282,10 @@ Manager::~Manager()
// Shutdown system
mouse_widgets_list.clear();
focus_widget = nullptr;
mouse_widget = nullptr;
capture_widget = nullptr;
}
manager_thread = std::thread::id();