remove duplicates of keys in deletion; may help with #36
This commit is contained in:
@ -291,8 +291,10 @@ class UpperManagement(QtCore.QObject):
|
||||
if k in self.data:
|
||||
cmd = DeleteCommand(self.data, k, self.newData, self.deleteData)
|
||||
self.undostack.push(cmd)
|
||||
else:
|
||||
elif k in self.graphs:
|
||||
rm_graphs.append(k)
|
||||
else:
|
||||
logger.warning(f'delete_sets: {k} is not in data or graph found')
|
||||
|
||||
for k in rm_graphs:
|
||||
cmd = DeleteGraphCommand(self.graphs, k, self.restoreGraph, self.deleteGraph)
|
||||
|
Reference in New Issue
Block a user