debug.log currently shows a warning
Object::connect: No such slot UnitDisplayStatusBarControl::onDisplayUnitsClicked(const QPoint&) in qt/bitcoingui.cpp:1043
So the line does not work anyway, it can be removed because right-click is also triggered through mousePressEvent.