From b93da90caecc1f7c5ab5c187f508af4d9ceac070 Mon Sep 17 00:00:00 2001 From: Orangerot Date: Fri, 16 Aug 2024 23:40:38 +0200 Subject: fix(EventInfoPage): show comptitor statistics --- src/model/SportModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/model') diff --git a/src/model/SportModel.cpp b/src/model/SportModel.cpp index b393498..6b71b88 100644 --- a/src/model/SportModel.cpp +++ b/src/model/SportModel.cpp @@ -100,9 +100,9 @@ void SportModel::parseData() { Competitor *comp = new Competitor(this); comp->setCompetitor(competitor.toObject()); if (medals.find(comp->name()) != medals.end()) comp->setMedals(medals.find(comp->name())->second); - if (!competitors.empty()) comp->setStatistic(competitors.first()->mark()); competitors << comp; } + addRelativeToFirst(competitors); event->setCompetitors(competitors); qDebug() << entry["eventUnitName"].toString(); -- cgit v1.2.3