Merge pull request #15465 from SamGondelman/baking82

Case 22371: Fix domain baking (RC82)
This commit is contained in:
Shannon Romano 2019-04-26 12:23:27 -07:00 committed by GitHub
commit 6352c66e6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -752,10 +752,11 @@ void DomainBaker::writeNewEntitiesFile() {
// time to write out a main models.json.gz file
// first setup a document with the entities array below the entities key
_json.object()[ENTITIES_OBJECT_KEY] = _entities;
QJsonObject json = _json.object();
json[ENTITIES_OBJECT_KEY] = _entities;
// turn that QJsonDocument into a byte array ready for compression
QByteArray jsonByteArray = _json.toJson();
QByteArray jsonByteArray = QJsonDocument(json).toJson();
// compress the json byte array using gzip
QByteArray compressedJson;