Ported to popupMenu() signal changes from 2 weeks ago.