Small fixes

This commit is contained in:
Raphael Coeffic
2021-12-31 10:53:09 +01:00
parent f5dd81627d
commit 763964193e
5 changed files with 15 additions and 14 deletions
+3 -2
View File
@@ -311,9 +311,10 @@ bool CategorizedStorageFormat::writeYaml(const RadioData & radioData)
// TODO: sort 'modelFiles' by category index
QByteArray modelslistBuffer;
if (!writeModelsListToYaml(radioData.categories, modelFiles, modelslistBuffer)
|| writeFile(modelslistBuffer, "MODELS/models.yml")) {
|| !writeFile(modelslistBuffer, "MODELS/models.yml")) {
return false;
}
return true;
// force error to avoid overwriting the archive...
return false;
}