From 9f348b513e6fcd0990cfc2273385b55887ec8058 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 24 Dec 2021 10:59:12 +0100 Subject: [PATCH] Fix writing model files for radios without categories --- companion/src/storage/categorized.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/companion/src/storage/categorized.cpp b/companion/src/storage/categorized.cpp index 05540bbb0..3f89b431f 100644 --- a/companion/src/storage/categorized.cpp +++ b/companion/src/storage/categorized.cpp @@ -319,7 +319,8 @@ bool CategorizedStorageFormat::writeYaml(const RadioData & radioData) modelFilename = QString("MODELS/%1").arg(model.filename); modelFiles.push_back({ std::string(model.filename), model.category }); } else { - modelFilename = QString("MODELS/model%1").arg(model.modelIndex, 2, QLatin1Char('0')); + modelFilename = QString("MODELS/model%1.yml") + .arg(model.modelIndex, 2, 10, QLatin1Char('0')); } QByteArray modelData;