qt3: fix infinite recursion created by 0b17251c06e