forked from IPKM/nmreval
UpperManagement.deleteDate emits list of sets, indexes in datawidget are now only updated once
This commit is contained in:
@ -236,9 +236,9 @@ class DeleteCommand(QtWidgets.QUndoCommand):
|
||||
# stop graph from rescaling and updating legend
|
||||
self.__graph_container[self.__graph_key].block(True)
|
||||
|
||||
self.__signal_remove.emit(list(self.__keys[::-1]))
|
||||
for sid in self.__keys[::-1]:
|
||||
val = self.__value[sid]
|
||||
self.__signal_remove.emit(sid)
|
||||
|
||||
if isinstance(val, FitContainer):
|
||||
try:
|
||||
@ -264,7 +264,7 @@ class DeleteCommand(QtWidgets.QUndoCommand):
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
self.__signal_add.emit([sid], val.graph)
|
||||
self.__signal_add.emit(list(self.__keys), self.__graph_key)
|
||||
|
||||
self.__graph_container[self.__graph_key].block(False)
|
||||
|
||||
|
Reference in New Issue
Block a user