Do not try to parse the model list if it's empty

This commit is contained in:
Raphael Coeffic
2021-12-31 14:16:58 +01:00
parent 9f6038c4e7
commit 4a1c44a553
@@ -48,6 +48,9 @@ bool loadModelsListFromYaml(std::vector<CategoryData>& categories,
EtxModelfiles& modelFiles,
const QByteArray& data)
{
if (data.size() == 0)
return true;
try {
YAML::Node node = loadYamlFromByteArray(data);
if (!node.IsSequence()) return false;