uncheck fits in data_table
This commit is contained in:
		| @@ -148,6 +148,13 @@ class QFitDialog(QtWidgets.QWidget, Ui_FitDialog): | ||||
|         Add name and id of dataset to list. | ||||
|         """ | ||||
|         self.data_table.load(ids) | ||||
|  | ||||
|         # deselect all fit sets | ||||
|         for i in range(self.data_table.rowCount()): | ||||
|             data_id = self.data_table.item(i, 0).data(QtCore.Qt.UserRole+1) | ||||
|             if self._management[data_id].mode == 'fit': | ||||
|                 self.data_table.item(i, 0).setCheckState(QtCore.Qt.Unchecked) | ||||
|  | ||||
|         if self.models: | ||||
|             for m in self.models.keys(): | ||||
|                 self.data_table.add_model(m) | ||||
|   | ||||
| @@ -605,6 +605,7 @@ class UpperManagement(QtCore.QObject): | ||||
|             if not graph_id: | ||||
|                 graph_id = '' | ||||
|  | ||||
|             # TODO add flag that new window will not get focus, because it messes up the data_table in fitwindow | ||||
|             self.newData.emit(p_id_list, graph_id) | ||||
|  | ||||
|     def save_fit_parameter(self, fname: str | pathlib.Path, fit_sets: list[str] = None): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user