Fix dropping an action from menu

Fixes lxde/lxde-qt#235.