Browse Source

Translate to actual component id

QGC4.4
Don Gagne 5 years ago
parent
commit
7ef2f1dc4a
  1. 4
      src/FactSystem/FactControls/FactPanelController.cc

4
src/FactSystem/FactControls/FactPanelController.cc

@ -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)
{
if (componentId == FactSystem::defaultComponentId) {
componentId = _vehicle->defaultComponentId();
}
qgcApp()->reportMissingParameter(componentId, name);
QString missingParam = QString("%1:%2").arg(componentId).arg(name);

Loading…
Cancel
Save