missed index as option #270

Merged
dominik merged 1 commits from hotfix into master 2024-04-30 15:16:24 +00:00

View File

@ -317,10 +317,13 @@ class QAsciiReader(QtWidgets.QDialog, Ui_ascii_reader):
return val return val
def check_column_numbers(self, values: int | list[int] | None, num_column: int) -> bool: def check_column_numbers(self, values: int | list[int] | str | None, num_column: int) -> bool:
is_valid = False is_valid = False
if values is None: if values is None:
is_valid = True is_valid = True
elif values == 'index':
is_valid = True
elif isinstance(values, int): elif isinstance(values, int):
is_valid = values < num_column is_valid = values < num_column
elif isinstance(values, list): elif isinstance(values, list):