Fix colorpicker focus loss on Mac

.. when editing a custom metric. This is to get around
a QT Bug ().

Fixes #476.