From aa39255f644882f9420d1b76815e61b18c4f8b0b Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 9 Apr 2021 13:12:44 +0200 Subject: [PATCH] do not create an empty model cell with no model inside the category (displays garbage) --- radio/src/storage/modelslist.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/radio/src/storage/modelslist.cpp b/radio/src/storage/modelslist.cpp index 54762d76a..0b5c20b81 100644 --- a/radio/src/storage/modelslist.cpp +++ b/radio/src/storage/modelslist.cpp @@ -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;