SelectionWidget has no function show_as_local_parameter; fixes #75

This commit is contained in:
Dominik Demuth 2023-05-24 09:00:31 +00:00
parent 4e2938b2a2
commit 5590b5cd16

View File

@ -181,7 +181,11 @@ class QFitParameterWidget(QtWidgets.QWidget, Ui_FormFit):
for i, value in enumerate(self.data_values[sid]): for i, value in enumerate(self.data_values[sid]):
w = self.data_parameter[i] w = self.data_parameter[i]
w.blockSignals(True) w.blockSignals(True)
try:
w.show_as_local_parameter(value is not None) w.show_as_local_parameter(value is not None)
except AttributeError:
pass
if value is None: if value is None:
w.value = self.glob_values[i] w.value = self.glob_values[i]
else: else: