Commit ed2bcaa0 authored by Don Gagne's avatar Don Gagne

Fix signal order problem

parent 674a5b7f
...@@ -194,13 +194,9 @@ void MultiVehicleManager::_autopilotPluginReadyChanged(bool pluginReady) ...@@ -194,13 +194,9 @@ void MultiVehicleManager::_autopilotPluginReadyChanged(bool pluginReady)
return; return;
} }
if (_activeVehicle) { if (autopilot->vehicle() == _activeVehicle) {
if (_activeVehicle->autopilotPlugin() == autopilot) { _parameterReadyVehicleAvailable = pluginReady;
_parameterReadyVehicleAvailable = pluginReady; emit parameterReadyVehicleAvailableChanged(pluginReady);
emit parameterReadyVehicleAvailableChanged(pluginReady);
}
} else {
qWarning() << "Why no active vehicle?";
} }
} }
......
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