From e6c74292b752e6da2d1fe49e8c975d9f6a4f9b6c Mon Sep 17 00:00:00 2001 From: "V. Armando Sole" Date: Fri, 20 Oct 2023 10:16:41 +0200 Subject: [PATCH] Check attribute --- PyMca5/PyMcaGui/io/QSpecFileWidget.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PyMca5/PyMcaGui/io/QSpecFileWidget.py b/PyMca5/PyMcaGui/io/QSpecFileWidget.py index 256f8ad6e..0b6900c74 100644 --- a/PyMca5/PyMcaGui/io/QSpecFileWidget.py +++ b/PyMca5/PyMcaGui/io/QSpecFileWidget.py @@ -819,7 +819,10 @@ def getWidgetConfiguration(self): else: ddict['auto'] = "OFF" ddict["2d"]= self.meshBox.isChecked() - ddict["3d"]= self.object3DBox.isChecked() + if hasattr(self, "object3DBox"): + ddict["3d"] = self.object3DBox.isChecked() + else: + ddict["3d"] = False ddict["mca"]= self.forceMcaBox.isChecked() return ddict