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): ...@@ -95,7 +95,7 @@ class InitialConditions(object):
def delete(self, data): def delete(self, data):
self._data = list( self._data = list(
filter( filter(
lambda x: x in data, lambda x: x not in data,
self._data self._data
) )
) )
......
...@@ -44,7 +44,7 @@ class AddCommand(QUndoCommand): ...@@ -44,7 +44,7 @@ class AddCommand(QUndoCommand):
self._ics.insert(self._index, self._new) self._ics.insert(self._index, self._new)
class DelCommand(QUndoCommand): class DelCommand(QUndoCommand):
def __init__(self, ics, tab, rows): def __init__(self, ics, rows):
QUndoCommand.__init__(self) QUndoCommand.__init__(self)
self._ics = ics self._ics = ics
...@@ -63,7 +63,7 @@ class DelCommand(QUndoCommand): ...@@ -63,7 +63,7 @@ class DelCommand(QUndoCommand):
self._ics.delete_i(self._rows) self._ics.delete_i(self._rows)
class SortCommand(QUndoCommand): class SortCommand(QUndoCommand):
def __init__(self, ics, tab, _reverse): def __init__(self, ics, _reverse):
QUndoCommand.__init__(self) QUndoCommand.__init__(self)
self._ics = ics self._ics = ics
...@@ -94,7 +94,7 @@ class SortCommand(QUndoCommand): ...@@ -94,7 +94,7 @@ class SortCommand(QUndoCommand):
class MoveCommand(QUndoCommand): class MoveCommand(QUndoCommand):
def __init__(self, ics, tab, up, i): def __init__(self, ics, up, i):
QUndoCommand.__init__(self) QUndoCommand.__init__(self)
self._ics = ics self._ics = ics
...@@ -115,7 +115,7 @@ class MoveCommand(QUndoCommand): ...@@ -115,7 +115,7 @@ class MoveCommand(QUndoCommand):
class PasteCommand(QUndoCommand): class PasteCommand(QUndoCommand):
def __init__(self, ics, tab, row, ic): def __init__(self, ics, row, ic):
QUndoCommand.__init__(self) QUndoCommand.__init__(self)
self._ics = ics self._ics = ics
...@@ -132,7 +132,7 @@ class PasteCommand(QUndoCommand): ...@@ -132,7 +132,7 @@ class PasteCommand(QUndoCommand):
class DuplicateCommand(QUndoCommand): class DuplicateCommand(QUndoCommand):
def __init__(self, ics, tab, rows, ic): def __init__(self, ics, rows, ic):
QUndoCommand.__init__(self) QUndoCommand.__init__(self)
self._ics = ics 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