Make DBusMenu work even with QMenu subclasses that override actions() with something that is not a function returning actions