QMessageBox about deadlock is prompting when deadlock occurs