[ui] CSV: case insensitive extension check

This commit is contained in:
Fabien Castan 2020-08-06 19:23:22 +02:00
parent 385d1f7738
commit b43d59f347

View file

@ -43,7 +43,7 @@ class CsvData(QObject):
def read(self):
"""Read the CSV file and return a list containing CsvColumn objects."""
if not self._filepath or not self._filepath.endswith(".csv") or not os.path.isfile(self._filepath):
if not self._filepath or not self._filepath.lower().endswith(".csv") or not os.path.isfile(self._filepath):
return []
csvRows = []