Prevent endless loop.
Get rid of a lot of Qt3 code.