diff options
author | Orangerot <purple@orangerot.dev> | 2024-08-16 16:17:16 +0200 |
---|---|---|
committer | Orangerot <purple@orangerot.dev> | 2024-08-16 16:17:16 +0200 |
commit | f87bc73c3f7ff003444ce2b0fef2229f501bd1d4 (patch) | |
tree | 2676648fec134e289497808ae7d675b94ebeef24 /src/model/Sport.cpp | |
parent | 3d19fd72716561a0322ba0acc5c94aac9f161e9d (diff) |
fix(Sport): disciplineChanged notification
Diffstat (limited to 'src/model/Sport.cpp')
-rw-r--r-- | src/model/Sport.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/Sport.cpp b/src/model/Sport.cpp index a21e21d..c7a9c72 100644 --- a/src/model/Sport.cpp +++ b/src/model/Sport.cpp @@ -64,11 +64,12 @@ QString SportModel::discipline() const { void SportModel::setDiscipline(const QString &discipline) { m_discipline = discipline; + disciplineChanged(); } void SportModel::request(QString discipline) { - m_discipline = discipline; + setDiscipline(discipline); m_reply = m_networkManager.get(QNetworkRequest( k_requestUrl + m_discipline)); qDebug() << m_reply; connect(m_reply, &QNetworkReply::finished, this, &SportModel::parseData); |