IC: Fix delete command.

mesh
Pierre-Antoine Rouby 2023-05-31 10:41:40 +02:00
parent 5a900578c8
commit e9af963c4b
2 changed files with 6 additions and 6 deletions

View File

@ -95,7 +95,7 @@ class InitialConditions(object):
def delete(self, data):
self._data = list(
filter(
lambda x: x in data,
lambda x: x not in data,
self._data
)
)

View File

@ -44,7 +44,7 @@ class AddCommand(QUndoCommand):
self._ics.insert(self._index, self._new)
class DelCommand(QUndoCommand):
def __init__(self, ics, tab, rows):
def __init__(self, ics, rows):
QUndoCommand.__init__(self)
self._ics = ics
@ -63,7 +63,7 @@ class DelCommand(QUndoCommand):
self._ics.delete_i(self._rows)
class SortCommand(QUndoCommand):
def __init__(self, ics, tab, _reverse):
def __init__(self, ics, _reverse):
QUndoCommand.__init__(self)
self._ics = ics
@ -94,7 +94,7 @@ class SortCommand(QUndoCommand):
class MoveCommand(QUndoCommand):
def __init__(self, ics, tab, up, i):
def __init__(self, ics, up, i):
QUndoCommand.__init__(self)
self._ics = ics
@ -115,7 +115,7 @@ class MoveCommand(QUndoCommand):
class PasteCommand(QUndoCommand):
def __init__(self, ics, tab, row, ic):
def __init__(self, ics, row, ic):
QUndoCommand.__init__(self)
self._ics = ics
@ -132,7 +132,7 @@ class PasteCommand(QUndoCommand):
class DuplicateCommand(QUndoCommand):
def __init__(self, ics, tab, rows, ic):
def __init__(self, ics, rows, ic):
QUndoCommand.__init__(self)
self._ics = ics