Skip to content

Commit

Permalink
Merge pull request #1043 from vasole/3D
Browse files Browse the repository at this point in the history
[GUI] Save configuration without OpenGL installed
  • Loading branch information
vasole authored Oct 20, 2023
2 parents 90ec6a6 + e6c7429 commit a0cfc27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PyMca5/PyMcaGui/io/QSpecFileWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a0cfc27

Please sign in to comment.