forked from IPKM/nmreval
move iteration of deleting sets inside undo, fixes #36
This commit is contained in:
commit
924b58beda
@ -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)
|
||||||
|
@ -624,6 +624,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