do not create an empty model cell with no model inside the category (displays garbage)

This commit is contained in:
Raphael Coeffic
2021-04-09 13:12:44 +02:00
parent 7931937f06
commit aa39255f64
+1 -3
View File
@@ -441,14 +441,12 @@ bool ModelsList::load()
if (!currentModel) {
if (model) {
currentModel = model;
currentCategory = category;
}
else {
model = new ModelCell(line);
category = new ModelsCategory("Models");
categories.push_back(category);
category->push_back(model);
}
currentCategory = category;
}
loaded = true;