Fix contextmenu actions for Qt5

As documented for QObject::connectNotify.