summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--homescreen/src/chromecontroller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/homescreen/src/chromecontroller.cpp b/homescreen/src/chromecontroller.cpp
index 34895bf..e944b2d 100644
--- a/homescreen/src/chromecontroller.cpp
+++ b/homescreen/src/chromecontroller.cpp
@@ -116,7 +116,7 @@ ChromeController::ChromeController(const QUrl &bindingUrl, QObject *parent) :
connect(m_aglSocket, &AglSocketWrapper::eventReceived,
this, [this](const QString &eventName, const QJsonValue &data) -> void {
if (eventName.compare(vshl::VOICE_DIALOG_STATE_EVENT + m_voiceAgentId) == 0) {
- const QJsonObject dataObj = QJsonDocument::fromJson(data.toString().toUtf8()).object();
+ const QJsonObject dataObj = data.toObject();
auto objIt = dataObj.find(vshl::STATE_TAG);
if (objIt == dataObj.constEnd()) {
qWarning() << "Voice dialog state event state missing.";