Commit e9af963c authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

IC: Fix delete command.

Showing with 6 additions and 6 deletions
+6 -6
......@@ -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
)
)
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment