// Plan is dirty, the user must decide what to do in all cases
qCDebug(PlanMasterControllerLog)<<"_activeVehicleChanged: Plan View - Previous dirty plan exists, no new active vehicle, sending promptForPlanUsageOnVehicleChange signal";
qCDebug(PlanMasterControllerLog)
<<"_activeVehicleChanged: Plan View - Previous dirty plan exists, "
"no new active vehicle, sending "
"promptForPlanUsageOnVehicleChange signal";
emitpromptForPlanUsageOnVehicleChange();
}else{
// Plan is not dirty
if(newOffline){
// The active vehicle went away with no new active vehicle
qCDebug(PlanMasterControllerLog)<<"_activeVehicleChanged: Plan View - Previous clean plan exists, no new active vehicle, clear stale plan";
qCDebug(PlanMasterControllerLog)
<<"_activeVehicleChanged: Plan View - Previous clean plan "
"exists, no new active vehicle, clear stale plan";
removeAll();
}else{
// We are transitioning from one active vehicle to another. Show the plan from the new vehicle.
qCDebug(PlanMasterControllerLog)<<"_activeVehicleChanged: Plan View - Previous clean plan exists, new active vehicle, loading from new manager vehicle";
// We are transitioning from one active vehicle to another. Show the
// plan from the new vehicle.
qCDebug(PlanMasterControllerLog)
<<"_activeVehicleChanged: Plan View - Previous clean plan "
"exists, new active vehicle, loading from new manager vehicle";