Skip to content

Commit

Permalink
FEM: Reset min/max/avg to the initial state after user selected None
Browse files Browse the repository at this point in the history
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF authored and wwmayer committed Apr 23, 2015
1 parent 31a263e commit f3b33f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Mod/Fem/MechanicalAnalysis.py
Expand Up @@ -663,6 +663,12 @@ def typeChanged(self, index):
if selected[0] == "None":
self.MeshObject.ViewObject.NodeColor = {}
self.MeshObject.ViewObject.ElementColor = {}
self.form.lineEdit_Max.setProperty("unit", "mm")
self.form.lineEdit_Max.setText(" 0 mm")
self.form.lineEdit_Min.setProperty("unit", "mm")
self.form.lineEdit_Min.setText(" 0 mm")
self.form.lineEdit_Avg.setProperty("unit", "mm")
self.form.lineEdit_Avg.setText(" 0 mm")
return

QApplication.setOverrideCursor(Qt.WaitCursor)
Expand Down

0 comments on commit f3b33f5

Please sign in to comment.