diff --git a/src/View/D90AdisTS/Table.py b/src/View/D90AdisTS/Table.py index f926bf41..71614dce 100644 --- a/src/View/D90AdisTS/Table.py +++ b/src/View/D90AdisTS/Table.py @@ -222,7 +222,7 @@ class D90TableModel(PamhyrTableModel): self._data, self._data._data, [data_rows[id(self._lst[row])] for row in rows - if 0 <= row < len(self._lst)] + if 0 <= row < len(self._lst)] ) ) diff --git a/src/View/D90AdisTS/Window.py b/src/View/D90AdisTS/Window.py index 0af4f4b6..3f76bca3 100644 --- a/src/View/D90AdisTS/Window.py +++ b/src/View/D90AdisTS/Window.py @@ -267,12 +267,12 @@ class D90AdisTSWindow(PamhyrWindow): undo_stack = self._undo_stack if undo_stack is None or not undo_stack.canUndo(): return - + if isinstance(undo_stack.command(undo_stack.index() - 1), SetCommand): self._table.undo() else: self._table_spec.undo() - + self._update() def _redo(self): diff --git a/src/View/DIFAdisTS/Table.py b/src/View/DIFAdisTS/Table.py index 433c7d93..12e8d382 100644 --- a/src/View/DIFAdisTS/Table.py +++ b/src/View/DIFAdisTS/Table.py @@ -238,8 +238,8 @@ class DIFTableModel(PamhyrTableModel): DelCommand( self._data, self._data._data, - [data_rows[id(self._lst[row])] for row in rows - if 0 <= row < len(self._lst)] + [data_rows[id(self._lst[row])] for row in rows + if 0 <= row < len(self._lst)] ) ) self._setup_lst()