Fix dropping an action from menu

Fixes lxde/lxde-qt#235, fixes lxde/lxde-qt#241, fixes lxde/lxde-qt#241 and fixes lxde/lxde-qt#219.