This ensures the QAction is disposed of once the menu gets destroyed rather than accumulating forever - the methods already took a "parent" argument, which is passed the menu from QML side, for exactly that purpose.
Details
Details
- Reviewers
mart hein - Group Reviewers
Plasma - Commits
- R119:58e932c607db: [Task Manager] Parent QAction to "parent" instead of this
verified that the actions are destroyed once the menu closes
Should be 5.8 material
Diff Detail
Diff Detail
- Repository
- R119 Plasma Desktop
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.