beacuse your application seems to have some behavior 'disable on press enter'.And while you are closing QMessageBox by enter key,the first one closes the msg,but next ones provided by autorepeat will be sent to your application.
Please show all your code,then maybe I'll be able to help you better.
Bookmarks