Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-02-05 19:17:46 +0300
committerDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-02-05 19:17:46 +0300
commita85a720184ab3d7f8cd7097375d00ff73dd4a805 (patch)
treec85b081d58eec342ea69f994f5b69cbcc9859fc5 /cura_app.py
parente64fb9c7622d149ad3fdcaf2fb55469fdf361bf1 (diff)
CURA-4895 Close the splash screen when the early crash dialog appears. Increase the size of 'show detailed crash report button'
Diffstat (limited to 'cura_app.py')
-rwxr-xr-xcura_app.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/cura_app.py b/cura_app.py
index d0170e5972..6c2d1c2937 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -99,18 +99,21 @@ def exceptHook(hook_type, value, traceback):
from PyQt5.Qt import QApplication
if CuraApplication.Created:
_crash_handler = CrashHandler(hook_type, value, traceback, has_started)
+ if CuraApplication.splash is not None:
+ CuraApplication.splash.close()
if not has_started:
CuraApplication.getInstance().removePostedEvents(None)
_crash_handler.early_crash_dialog.show()
sys.exit(CuraApplication.getInstance().exec_())
else:
_crash_handler.show()
- sys.exit(1)
else:
application = QApplication(sys.argv)
application.removePostedEvents(None)
_crash_handler = CrashHandler(hook_type, value, traceback, has_started)
- CuraApplication.getInstance().closeSplash()
+ # This means the QtApplication could be created and so the splash screen. Then Cura closes it
+ if CuraApplication.splash is not None:
+ CuraApplication.splash.close()
_crash_handler.early_crash_dialog.show()
sys.exit(application.exec_())