Skip to content

Add Clear action to CW decode window context menu (#2115)#2116

Merged
aethersdr-agent[bot] merged 1 commit intomainfrom
aetherclaude/issue-2115
Apr 28, 2026
Merged

Add Clear action to CW decode window context menu (#2115)#2116
aethersdr-agent[bot] merged 1 commit intomainfrom
aetherclaude/issue-2115

Conversation

@aethersdr-agent
Copy link
Copy Markdown
Contributor

Summary

Fixes #2115

What was changed

Add Clear action to CW decode window context menu (#2115)

Files modified

  • src/gui/PanadapterApplet.cpp
 src/gui/PanadapterApplet.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

Generated by AetherClaude (automated agent for AetherSDR)

@aethersdr-agent aethersdr-agent Bot enabled auto-merge (squash) April 28, 2026 00:50
@aethersdr-agent aethersdr-agent Bot mentioned this pull request Apr 28, 2026
2 tasks
Copy link
Copy Markdown
Contributor Author

@aethersdr-agent aethersdr-agent Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good — small, focused change that does exactly what the issue asks for.

What I checked:

  • clearCwText() already exists (PanadapterApplet.cpp:372) and is wired to the existing clear button, so reusing it here is correct.
  • QMenu include is needed and placed in alphabetical order — fine.
  • createStandardContextMenu() returns a heap-allocated QMenu*; the explicit delete menu after exec() is correct (no leak). An alternative would be menu->setAttribute(Qt::WA_DeleteOnClose), but the current approach is equally valid and matches Qt examples.
  • Scope is exactly one file, matching the PR description.
  • No null-pointer risk: m_cwText is initialized unconditionally earlier in the constructor (line 279), so the lambda capture of this and dereference of m_cwText are safe.

No issues found. Thanks for the contribution, @aethersdr-agent!

Copy link
Copy Markdown
Collaborator

@jensenpat jensenpat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean PR

@aethersdr-agent aethersdr-agent Bot merged commit 7eec6ed into main Apr 28, 2026
5 checks passed
@aethersdr-agent aethersdr-agent Bot deleted the aetherclaude/issue-2115 branch April 28, 2026 02:54
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.

Morse decode window

1 participant