FEM: Replace invalid General_description with Description

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-04-24 23:41:53 +01:00 committed by wmayer
parent 7036d46bf2
commit ab26d7fd50

View File

@ -186,8 +186,8 @@ class _MechanicalMaterialTaskPanel:
self.form.cb_materials.setCurrentIndex(index)
self.set_mat_params_in_combo_box(self.obj.Material)
gen_mat_desc = ""
if 'General_description' in self.obj.Material:
gen_mat_desc = self.obj.Material['General_description']
if 'Description' in self.obj.Material:
gen_mat_desc = self.obj.Material['Description']
self.form.l_mat_description.setText(gen_mat_desc)
self.print_mat_data(self.obj.Material)