missed index as option
This commit is contained in:
parent
79d0ab1628
commit
3ee7dca457
@ -317,10 +317,13 @@ class QAsciiReader(QtWidgets.QDialog, Ui_ascii_reader):
|
||||
|
||||
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
|
||||
if values is None:
|
||||
is_valid = True
|
||||
elif values == 'index':
|
||||
is_valid = True
|
||||
|
||||
elif isinstance(values, int):
|
||||
is_valid = values < num_column
|
||||
elif isinstance(values, list):
|
||||
|
Loading…
Reference in New Issue
Block a user