feat(cpn): refactor handling of erroneous models (#7377)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user