You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix teardown crashes by correcting QObject ownership hierarchy
The application was crashing on mac and Windows during shutdown due to
improper parenting of UI components. When objects like delegates or models
are parented to the main Widget instead of the View, they can be destroyed
out of order, leading to use-after-free errors when the View attempts to
access them during its own destruction.
- Parent GroupModel, GroupProxyModel, and RoomModel to m_table.
- Parent GroupDelegate and TimerDelegate to their respective views.
- Ensure the lifecycle of the delegate matches the lifecycle of the view
to prevent segmentation faults during signal disconnection.
- Restore heap allocation for GroupModel and RoomModel to ensure Qt's
ownership system manages its cleanup correctly.
0 commit comments