Commit 68f9123a authored by Jonathan Zaturensky's avatar Jonathan Zaturensky

Add check to ensure connected AirMap client

parent a04426b2
......@@ -273,7 +273,10 @@ void PlanMasterController::_sendRallyPointsComplete(void)
}
void PlanMasterController::_startFlightPlanning(void) {
qgcApp()->toolbox()->airspaceManager()->flightPlan()->startFlightPlanning(this);
if (qgcApp()->toolbox()->airspaceManager()->connected()) {
qCDebug(PlanMasterControllerLog) << "PlanMasterController::_startFlightPlanning client connected, start flight planning";
qgcApp()->toolbox()->airspaceManager()->flightPlan()->startFlightPlanning(this);
}
}
void PlanMasterController::sendToVehicle(void)
......
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