From 3ee7dca4572d803eeb4994839fba747141f87d15 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Tue, 30 Apr 2024 17:15:46 +0200 Subject: [PATCH] missed index as option --- src/gui_qt/io/asciireader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui_qt/io/asciireader.py b/src/gui_qt/io/asciireader.py index ea559c2..5fb765b 100644 --- a/src/gui_qt/io/asciireader.py +++ b/src/gui_qt/io/asciireader.py @@ -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): -- 2.39.5