src/EditProductTab7.cpp

changeset 257
cfba041bdaee
parent 219
fa7cad488e27
child 287
83e66c6b6e07
equal deleted inserted replaced
256:c136bd15b084 257:cfba041bdaee
780 if (!json.trimmed().isEmpty()) { 780 if (!json.trimmed().isEmpty()) {
781 const auto& formattedJson = QString("%1").arg(json); 781 const auto& formattedJson = QString("%1").arg(json);
782 QJsonDocument newsteps = QJsonDocument::fromJson(formattedJson.toUtf8(), &parseError); 782 QJsonDocument newsteps = QJsonDocument::fromJson(formattedJson.toUtf8(), &parseError);
783 783
784 if (parseError.error != QJsonParseError::NoError) { 784 if (parseError.error != QJsonParseError::NoError) {
785 qDebug() << "Parse error: " << parseError.errorString() << "at" << parseError.offset; 785 qWarning() << "Parse error: " << parseError.errorString() << "at" << parseError.offset;
786 } else { 786 } else {
787 /* 787 /*
788 * Got the json data in the steps array, replace the product steps. 788 * Got the json data in the steps array, replace the product steps.
789 */ 789 */
790 double infuse = 0; 790 double infuse = 0;

mercurial