From 70d5f014e50b9255dcb5c36122a109cc049c8936 Mon Sep 17 00:00:00 2001 From: Steru Date: Thu, 15 Aug 2024 19:21:02 +0200 Subject: Added Q Object macros. --- src/model/Competitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/model/Competitor.cpp') diff --git a/src/model/Competitor.cpp b/src/model/Competitor.cpp index a5d2e69..d39d134 100644 --- a/src/model/Competitor.cpp +++ b/src/model/Competitor.cpp @@ -8,7 +8,7 @@ bool Competitor::setCompetitor(const QJsonObject &competitor) { throw invalid_argument("Not a competitor object."); } - this->code = competitor["code"].toString(); + this->code = competitor["code"].toInt(); this->name = competitor["name"].toString(); this->noc = competitor["noc"].toString(); return true; -- cgit v1.2.3