Yep, became aware of this while fixing a related feature. Left it untouched, as I couldn’t find a solution that worked in qt5 (other than to disable it entirely if qt5).
That’s a python bug that won’t be fixed by what @rossgb suggested. Such bugs have to be found and fixed manually, unless I’m mistaken.