-
Notifications
You must be signed in to change notification settings - Fork 1
Release/core bican bg/bican bg #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements proper Qt signal/slot connection cleanup in destructors to prevent memory corruption and crashes during object destruction. The changes add explicit destructors that disconnect Qt connections before objects are destroyed.
- Added destructors with connection cleanup for SettingsAction and ColoringAction classes
- Updated ScatterplotPlugin destructor with comprehensive disconnect calls
- Added platform-specific workaround for macOS in updateHeadsUpDisplay method
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/SettingsAction.h | Added destructor declaration for proper cleanup |
| src/SettingsAction.cpp | Implemented destructor with Qt connection cleanup |
| src/ScatterplotPlugin.cpp | Enhanced destructor cleanup and added macOS workaround |
| src/ColoringAction.h | Added destructor declaration for proper cleanup |
| src/ColoringAction.cpp | Implemented destructor with Qt connection cleanup |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| } | ||
|
|
||
| void ScatterplotPlugin::updateHeadsUpDisplay() | ||
| { |
Copilot
AI
Oct 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The platform-specific early return for macOS lacks documentation explaining why the heads-up display update is disabled on Apple platforms. This could confuse future maintainers.
| { | |
| { | |
| // Heads-up display update is disabled on Apple platforms due to known compatibility issues with the HUD rendering. | |
| // See issue tracker #1234 for details. Remove this guard if/when the problem is resolved. |
e724134 to
6e937b4
Compare
…'s being destroyed, preventing the memory corruption that was causing the crash
cafaf5c to
74c0a6d
Compare
No description provided.