1
0
forked from IPKM/nmreval

UpperManagement.deleteDate emits list of sets, indexes in datawidget are now only updated once

This commit is contained in:
Dominik Demuth
2023-04-15 15:40:49 +02:00
parent e41c42d573
commit bd8a4f16ea
4 changed files with 25 additions and 15 deletions

View File

@ -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)