Destroy a removed menu item before its action.
An item reads action() while it is being torn down, so removeAction() deleting the action first left it pointing at freed memory for the whole widget destructor. clearActions() and clearLastSeparator() already do it in this order.
J
John Preston committed
23b6c1beeb4cb97c61bdab1868e2a474a59b6088
Parent: 8bcbab7