Skip to content

Conversation

@sbvis
Copy link
Contributor

@sbvis sbvis commented Oct 5, 2025

No description provided.

@sbvis sbvis requested review from ThomasKroes and Copilot October 5, 2025 00:39
Copy link

Copilot AI left a 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()
{
Copy link

Copilot AI Oct 5, 2025

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.

Suggested change
{
{
// 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.

Copilot uses AI. Check for mistakes.
@ThomasKroes ThomasKroes force-pushed the release/core_bican_bg/bican_bg branch from e724134 to 6e937b4 Compare October 17, 2025 08:32
@JulianThijssen JulianThijssen force-pushed the release/core_bican_bg/bican_bg branch from cafaf5c to 74c0a6d Compare December 16, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants