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

@ -66,7 +66,10 @@ class CrashHandler:
for part in line.rstrip("\n").split("\n"):
Logger.log("c", part)
if exception_type not in fatal_exception_types:
# If Cura has fully started, we only show fatal errors.
# If Cura has not fully started yet, we always show the early crash dialog. Otherwise, Cura will just crash
# without any information.
if has_started and exception_type not in fatal_exception_types:
return
self._send_report_checkbox = None