As soon as QMenu becomes empty it is closed. This can happen when the application completely reloads its menu.
Instead, call deleteLater which will destroy the QAction later at which point it is automatically removed from the menu.
BUG: 399975
davidedmundson | |
poboiko |
Plasma |
As soon as QMenu becomes empty it is closed. This can happen when the application completely reloads its menu.
Instead, call deleteLater which will destroy the QAction later at which point it is automatically removed from the menu.
BUG: 399975
A less invasive, albeit more questionable, patch than D15637
Should this go in stable, or test it a bit more and then put it in stable?
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |