Skip to content

Fix removeMenu methods in QgsApp#66440

Draft
merydian wants to merge 2 commits into
qgis:masterfrom
merydian:fix-menu-deletion-qgsapp
Draft

Fix removeMenu methods in QgsApp#66440
merydian wants to merge 2 commits into
qgis:masterfrom
merydian:fix-menu-deletion-qgsapp

Conversation

@merydian

Copy link
Copy Markdown
Contributor

Description

Currently any call to a removeXMenu method in QgsApp will create a menu, and not delete it.

This PR calls menu->deleteLater() in the respective remove function after getXMenu(), which creates an empty menu.

Fixes #66186 and #66407

AI tool usage

AI was used to do research on methodology and generic syntax. The logic was implemented by hand.

  • AI tool(s) (Copilot, Claude, or something similar) supported my development of this PR. See our policy about AI tool use. Use of AI tools must be indicated. Failure to be honest might result in banning.

@github-actions github-actions Bot added this to the 4.2.0 milestone Jun 11, 2026
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.

removePluginMenu leaves a hidden empty menu

1 participant