From d839b62e4211f72a1e432427d103a1efbffb571d Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Mon, 18 Dec 2017 11:58:28 +0100 Subject: [PATCH] Prevent CrashHandler creating a QWidget before QApplication is created --- cura/CrashHandler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index 81eca67a46..5e4b409939 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -53,7 +53,7 @@ class CrashHandler: self.exception_type = exception_type self.value = value self.traceback = tb - self.dialog = QDialog() + self.dialog = None # Don't create a QDialog before there is a QApplication # While we create the GUI, the information will be stored for sending afterwards self.data = dict() @@ -71,6 +71,7 @@ class CrashHandler: if not application: sys.exit(1) + self.dialog = QDialog() self._createDialog() ## Creates a modal dialog.