Fix AutoSave crashing the early crash dialog

CURA-4895
This commit is contained in:
Lipu Fei 2018-02-01 16:39:56 +01:00 committed by Diego Prado Gesto
parent 547baff239
commit b59eadce1c
4 changed files with 18 additions and 13 deletions

View file

@ -108,6 +108,7 @@ def exceptHook(hook_type, value, traceback):
sys.exit(1)
else:
application = QApplication(sys.argv)
application.removePostedEvents(None)
_crash_handler = CrashHandler(hook_type, value, traceback, has_started)
_crash_handler.early_crash_dialog.show()
sys.exit(application.exec_())