mirror of https://gitlab.com/pamhyr/pamhyr2
debug undo after deletion of BCA
parent
726b81bf12
commit
084c22836b
|
|
@ -548,11 +548,11 @@ class BoundaryConditionAdisTS(SQLSubModel):
|
|||
self.modified()
|
||||
|
||||
def delete_i(self, indexes):
|
||||
self._data = list(
|
||||
list(
|
||||
map(
|
||||
lambda e: e[1].set_as_deleted(),
|
||||
filter(
|
||||
lambda e: e[0] not in indexes,
|
||||
lambda e: e[0] in indexes,
|
||||
enumerate(self.data)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ class DelCommand(QUndoCommand):
|
|||
|
||||
self._bc = []
|
||||
for row in rows:
|
||||
self._bc.append((row, self._bcs.get(row)))
|
||||
self._bc.append((row, self._bcs._lst[row]))
|
||||
self._bc.sort()
|
||||
|
||||
def undo(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue