diff --git a/statapp/models/input_values_model.py b/statapp/models/input_values_model.py index 9bc780e..40f19c1 100644 --- a/statapp/models/input_values_model.py +++ b/statapp/models/input_values_model.py @@ -35,10 +35,4 @@ class InputValuesModel(EditableTableModel): return self._data[:, 0] def removeCol(self, index: int): - self._data = np.delete(self._data, index, axis=1) - self.layoutChanged.emit() - - self.dataChanged.emit( - self.index(0, 0), - self.index(self.rowCount(QModelIndex()), self.columnCount(QModelIndex())) - ) + self.updateAllData(np.delete(self._data, index, axis=1))