Unverified Commit 7dd98eac authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #7892 from DonLakeFlyer/DefaultComponent

Missing Parameters: Translate to actual component id
parents a07fe820 7ef2f1dc
...@@ -61,6 +61,10 @@ void FactPanelController::_notifyPanelErrorMsg(const QString& errorMsg) ...@@ -61,6 +61,10 @@ void FactPanelController::_notifyPanelErrorMsg(const QString& errorMsg)
void FactPanelController::_reportMissingParameter(int componentId, const QString& name) void FactPanelController::_reportMissingParameter(int componentId, const QString& name)
{ {
if (componentId == FactSystem::defaultComponentId) {
componentId = _vehicle->defaultComponentId();
}
qgcApp()->reportMissingParameter(componentId, name); qgcApp()->reportMissingParameter(componentId, name);
QString missingParam = QString("%1:%2").arg(componentId).arg(name); QString missingParam = QString("%1:%2").arg(componentId).arg(name);
......
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