Commit 348285b0 authored by Don Gagne's avatar Don Gagne

Emit signal after parameter updated

Emitting signal beforehand can lead to subtle bugs where code expects
value to be updated and it is not.
parent 1b40a17b
...@@ -184,9 +184,8 @@ void UASParameterDataModel::handleParamUpdate(int compId, const QString &paramNa ...@@ -184,9 +184,8 @@ void UASParameterDataModel::handleParamUpdate(int compId, const QString &paramNa
} }
} }
emit parameterUpdated(compId,paramName,value);
setOnboardParam(compId,paramName,value); setOnboardParam(compId,paramName,value);
emit parameterUpdated(compId,paramName,value);
} }
bool UASParameterDataModel::getOnboardParamValue(int componentId, const QString& key, QVariant& value) const bool UASParameterDataModel::getOnboardParamValue(int componentId, const QString& key, QVariant& value) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment