do not create an empty model cell with no model inside the category (displays garbage)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user