feat(cpn): refactor handling of erroneous models (#7377)

This commit is contained in:
Neil Horne
2026-06-16 15:19:24 +10:00
committed by GitHub
parent 6a3349f095
commit 4ebf3486f1
7 changed files with 115 additions and 21 deletions
+7
View File
@@ -168,5 +168,12 @@ void ModelEdit::onTabIndexChanged(int index)
void ModelEdit::launchSimulation()
{
if (!radioData.models[modelId].isValid()) {
QMessageBox::critical(this, tr("Simulate Model"),
tr("Operation aborted: model has errors that may affect simulation.\n%1")
.arg(radioData.models[modelId].errorsList().join("\n")));
return;
}
startSimulation(this, radioData, modelId);
}