satisfy Travis

This commit is contained in:
UR-0
2021-03-05 19:19:37 +01:00
committed by Bernd Hahnebach
parent 63bc55a221
commit b9669db146

View File

@@ -817,9 +817,8 @@ class FemToolsCcx(QtCore.QRunnable, QtCore.QObject):
obj.Text = file.read()
file.close()
obj.setPropertyStatus("Text", "ReadOnly") # set property editor readonly
if hasattr(obj, "ViewObject"):
if FreeCAD.GuiUp:
obj.ViewObject.ReadOnly = True # set editor view readonly
print(self.analysis)
else:
raise Exception("FEM: No .dat results found at {}!".format(dat_result_file))