Empty error message box is no fun

This commit is contained in:
Andre Bernet
2017-05-16 14:39:27 +04:00
parent 618832974e
commit 4d23292ad3
+1
View File
@@ -89,6 +89,7 @@ bool CategorizedStorageFormat::load(RadioData & radioData)
radioData.models.resize(modelIndex + 1);
}
if (!loadModelFromByteArray(radioData.models[modelIndex], modelBuffer)) {
setError(QObject::tr("Error loading models"));
return false;
}
strncpy(radioData.models[modelIndex].filename, qPrintable(fileName), sizeof(radioData.models[modelIndex].filename));