mirror of https://gitlab.com/pamhyr/pamhyr2
rename variable to keep consistency
parent
a8b260ad38
commit
92fae0e13f
|
|
@ -162,13 +162,13 @@ class DelCommand(QUndoCommand):
|
||||||
self._dif_spec = dif_spec
|
self._dif_spec = dif_spec
|
||||||
self._rows = rows
|
self._rows = rows
|
||||||
|
|
||||||
self._ic = []
|
self._dif = []
|
||||||
for row in rows:
|
for row in rows:
|
||||||
self._ic.append((row, self._dif_spec[row]))
|
self._dif.append((row, self._dif_spec[row]))
|
||||||
self._ic.sort()
|
self._dif.sort()
|
||||||
|
|
||||||
def undo(self):
|
def undo(self):
|
||||||
for row, el in self._ic:
|
for row, el in self._dif:
|
||||||
self._data.insert(row, el)
|
self._data.insert(row, el)
|
||||||
|
|
||||||
def redo(self):
|
def redo(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue