mirror of https://gitlab.com/pamhyr/pamhyr2
IC: Fix delete command.
parent
5a900578c8
commit
e9af963c4b
|
|
@ -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):
|
||||||
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):
|
||||||
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):
|
||||||
|
|
||||||
|
|
||||||
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):
|
||||||
|
|
||||||
|
|
||||||
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):
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue