summaryrefslogtreecommitdiffhomepage
path: root/csv/csv.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2025-05-16 11:36:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2025-05-17 08:22:20 +0200
commita57f04d7814034743d53b3d85d6448eec228aacb (patch)
tree4def39a1b5bad09ac8d2c35e4a07e96ae3b08dad /csv/csv.cpp
parent9e797c9eeae4fabe4b893875c8fc26f15e6060ea (diff)
csv: fix hangfeature/qt6
Introduced while removing calls to readLineInto().
Diffstat (limited to 'csv/csv.cpp')
-rw-r--r--csv/csv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/csv/csv.cpp b/csv/csv.cpp
index d899e11a..79841bea 100644
--- a/csv/csv.cpp
+++ b/csv/csv.cpp
@@ -73,9 +73,11 @@ bool getGameData(int id, unsigned char* table, QString& gamename)
while (auto sz = file.readLine(buf, sizeof(buf)))
{
QString line = decoder.decode(QByteArrayView{buf, sz});
- chomp(line);
if (line.isEmpty())
+ break;
+ chomp(line);
+ if (line.isEmpty())
continue;
gameLine = line.split(';', Qt::SplitBehaviorFlags::KeepEmptyParts);