diff options
Diffstat (limited to 'src/model/SportModel.cpp')
-rw-r--r-- | src/model/SportModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/SportModel.cpp b/src/model/SportModel.cpp index 557affe..0a99c55 100644 --- a/src/model/SportModel.cpp +++ b/src/model/SportModel.cpp @@ -101,9 +101,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(); |