The context menu for a timeline item is shown synchronously, leading to a possibility that after redacting the item using that menu the QML object on which the menu was shown gets deleted before Qt closes the menu. Instead of exec(), the menu should be shown asynchronously with popup() (with WA_DeleteOnClose attribute set).
The context menu for a timeline item is shown synchronously, leading to a possibility that after redacting the item using that menu the QML object on which the menu was shown gets deleted before Qt closes the menu. Instead of
exec()
, the menu should be shown asynchronously withpopup()
(withWA_DeleteOnClose
attribute set).