Fix writing model files for radios without categories

This commit is contained in:
Raphael Coeffic
2021-12-31 10:53:11 +01:00
parent f4257c0c2a
commit 9f348b513e
+2 -1
View File
@@ -319,7 +319,8 @@ bool CategorizedStorageFormat::writeYaml(const RadioData & radioData)
modelFilename = QString("MODELS/%1").arg(model.filename);
modelFiles.push_back({ std::string(model.filename), model.category });
} else {
modelFilename = QString("MODELS/model%1").arg(model.modelIndex, 2, QLatin1Char('0'));
modelFilename = QString("MODELS/model%1.yml")
.arg(model.modelIndex, 2, 10, QLatin1Char('0'));
}
QByteArray modelData;