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)
return;
}
if (_activeVehicle) {
if (_activeVehicle->autopilotPlugin() == autopilot) {
_parameterReadyVehicleAvailable = pluginReady;
emit parameterReadyVehicleAvailableChanged(pluginReady);
}
} else {
qWarning() << "Why no active vehicle?";
if (autopilot->vehicle() == _activeVehicle) {
_parameterReadyVehicleAvailable = pluginReady;
emit parameterReadyVehicleAvailableChanged(pluginReady);
}
}
......
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