--- a/src/documentmanager.cpp Thu Mar 03 11:42:52 2022 +0200 +++ b/src/documentmanager.cpp Thu Mar 03 21:13:16 2022 +0200 @@ -256,7 +256,7 @@ if (file.open(QSaveFile::WriteOnly)) { // if path is not nullptr, getModelById will always return a value as well - this->getModelById(modelId)->save(&file); + ::save(*this->getModelById(modelId), &file); const bool commitSucceeded = file.commit(); if (not commitSucceeded) { @@ -413,7 +413,7 @@ modelInfo.dependencies.clear(); for (int i = 0; i < modelInfo.model->size(); i += 1) { - const QString referenceName = modelInfo.model->getObjectProperty(i, ldraw::Property::ReferenceName).toString(); + const QString referenceName = (*modelInfo.model)[i]->getProperty(ldraw::Property::ReferenceName).toString(); if (not referenceName.isEmpty() and modelInfo.dependencies.count(referenceName) == 0 and not failedToOpen.contains(referenceName))