Commit ff63fd11 authored by hjk's avatar hjk

Debugger: Quote strings in QmlEngine

Task-number: QTCREATORBUG-5670
Change-Id: I1cfad65042369d9e34c19dc4a7f00a37dbe6fed4
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent c267a34b
......@@ -1677,8 +1677,9 @@ QmlV8ObjectData QmlEnginePrivate::extractData(const QVariant &data) const
objectData.value = dataMap.value(_(VALUE));
} else if (type == _("string")) {
QLatin1Char quote('"');
objectData.type = QByteArray("string");
objectData.value = dataMap.value(_(VALUE));
objectData.value = QString(quote + dataMap.value(_(VALUE)).toString() + quote);
} else if (type == _("object")) {
objectData.type = QByteArray("object");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment