Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
DolphinQt/Debugger: Fix crash with floating debugger windows #8618
QDockWidget::setFloating ends up calling showEvent in the implementation class.
In BreakpointWidget and CodeWidget, this leads to Update() and a null pointer dereference on widgets that haven't been created yet. Moving the CreateWidgets call before setFloating fixes this. (JITWidget and MemoryWidget already do this.)
The rest of the widgets that call setFloating have also been updated to avoid similar bugs if they're changed in the future.