forked from IPKM/nmreval
uncheck fits in data_table
This commit is contained in:
parent
bc034cf4f4
commit
0251dea563
@ -148,6 +148,13 @@ class QFitDialog(QtWidgets.QWidget, Ui_FitDialog):
|
|||||||
Add name and id of dataset to list.
|
Add name and id of dataset to list.
|
||||||
"""
|
"""
|
||||||
self.data_table.load(ids)
|
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:
|
if self.models:
|
||||||
for m in self.models.keys():
|
for m in self.models.keys():
|
||||||
self.data_table.add_model(m)
|
self.data_table.add_model(m)
|
||||||
|
@ -605,6 +605,7 @@ class UpperManagement(QtCore.QObject):
|
|||||||
if not graph_id:
|
if not graph_id:
|
||||||
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)
|
self.newData.emit(p_id_list, graph_id)
|
||||||
|
|
||||||
def save_fit_parameter(self, fname: str | pathlib.Path, fit_sets: list[str] = None):
|
def save_fit_parameter(self, fname: str | pathlib.Path, fit_sets: list[str] = None):
|
||||||
|
Loading…
Reference in New Issue
Block a user