X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fsrc%2Fchromecontroller.cpp;h=e944b2dff546b2732595ff04f6a0afe3d2f53eef;hb=c9c9e1d5ab372f1abd982072644766b008a384f0;hp=34895bf09a7a6594f2ae7db029250c7e262ea2cb;hpb=b57a3197dad42bdd7a72266aaa160341573b0627;p=apps%2Fhomescreen.git 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.";