processEvents before starting autodetection.