mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
IC: Fix delete command.
This commit is contained in:
1 parent
5a900578c8
commit
e9af963c4b
2 files changed
+6
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user