Bsongis/horus create radiodata from scratch (#4251)
[Companion] It's now possible to add models on an empty EEPROM, save and reload the .otx
This commit is contained in:
@@ -57,6 +57,9 @@ bool CategorizedStorageFormat::load(RadioData & radioData)
|
||||
setError(QObject::tr("Can't extract %1").arg(QString(line)));
|
||||
return false;
|
||||
}
|
||||
if ((int)radioData.models.size() <= modelIndex) {
|
||||
radioData.models.resize(modelIndex + 1);
|
||||
}
|
||||
if (!loadModelFromByteArray(radioData.models[modelIndex], modelBuffer)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user