From 435e4c86f58e550b1e5e5d9b1769b4021b96a666 Mon Sep 17 00:00:00 2001 From: Neil Horne Date: Wed, 7 Sep 2022 20:13:43 +1000 Subject: [PATCH] fix(cpn): Add model with template crashed simulator (#2289) --- companion/src/mdichild.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/companion/src/mdichild.cpp b/companion/src/mdichild.cpp index 15588687d..b78721469 100644 --- a/companion/src/mdichild.cpp +++ b/companion/src/mdichild.cpp @@ -756,7 +756,6 @@ int MdiChild::newModel(int modelIndex) bool isNewModel = radioData.models[modelIndex].isEmpty(); checkAndInitModel(modelIndex); - radioData.fixModelFilenames(); // Only set the default model if we just added the first one. if (countUsedModels() == 1) { @@ -779,6 +778,7 @@ int MdiChild::newModel(int modelIndex) else if (g.newModelAction() == AppData::MODEL_ACT_EDITOR) openModelEditWindow(modelIndex); + radioData.fixModelFilenames(); return modelIndex; } @@ -1105,7 +1105,6 @@ void MdiChild::openModelWizard(int row) int res = wizard->exec(); if (res == QDialog::Accepted && wizard->mix.complete /*TODO rather test the exec() result?*/) { radioData.models[row] = wizard->mix; - radioData.fixModelFilenames(); setModified(); setSelectedModel(row); }