Changeset 29eb947 in sasview for src/sas/qtgui/Perspectives
- Timestamp:
- Mar 23, 2017 3:41:31 AM (8 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- b1e36a3
- Parents:
- 0979dfb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r351b53e r29eb947 256 256 self.disableModelCombo() 257 257 self.enableStructureCombo() 258 self._model_model.clear() 258 259 return 259 260 … … 309 310 """ 310 311 model = str(self.cbModel.currentText()) 312 category = str(self.cbCategory.currentText()) 311 313 structure = str(self.cbStructureFactor.currentText()) 314 if category == CATEGORY_STRUCTURE: 315 model = None 312 316 self.SASModelToQModel(model, structure_factor=structure) 313 317 … … 419 423 name_index = self._poly_model.index(model_row, 0) 420 424 # Extract changed value. Assumes proper validation by QValidator/Delegate 421 value = float(item.text()) 425 # Checkbox in column 0 426 if model_column == 0: 427 value = item.checkState() 428 else: 429 value = float(item.text()) 422 430 parameter_name = str(self._poly_model.data(name_index).toPyObject()) # "distribution of sld" etc. 423 431 if "Distribution of" in parameter_name:
Note: See TracChangeset
for help on using the changeset viewer.