aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-11-23 09:38:30 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2018-11-23 09:38:30 +0100
commit09f1cb780345b0e975fd4d74b32c38e5e9596f63 (patch)
treebdc1e8c7a2974cdfc6e49e770c8c157166711314 /app
parent1406acd6b62734aa836c735303a8e78189407227 (diff)
Using APIv3 the json format for a response of an API call has changed a bit, removing one extra useless level. BUG: SPECT-1973 Change-Id: If5cfcda5740cf48637257a510f030dc84e853057 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'app')
-rw-r--r--app/mixer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mixer.cpp b/app/mixer.cpp
index f231b6d..ccb16d6 100644
--- a/app/mixer.cpp
+++ b/app/mixer.cpp
@@ -83,7 +83,7 @@ void Mixer::getVolume(const QString& name)
{
// TODO: Success, update the slider
qDebug() << "Volume changed: " << v;
- int newVolume = v.toObject()["response"].toObject()["response"].toObject()["volnew"].toInt();
+ int newVolume = v.toObject()["response"].toObject()["volnew"].toInt();
auto currentVolume = volumes_.find(name);
if (currentVolume != volumes_.end() && *currentVolume == newVolume)
return;