fixed a venial bug in qtapplication.py