Fix crash with Windows systems caused by QProgressDialog