1
0
Fork 0

Multiple Flight-Plan clears are a no-op

This commit is contained in:
James Turner 2016-11-30 12:16:23 +00:00
parent df2ab15e6c
commit 1c4e3263f8

View file

@ -225,6 +225,12 @@ void FlightPlan::deleteIndex(int aIndex)
void FlightPlan::clear()
{
// some badly behaved CDU implementations call clear on a Nasal timer
// during startup.
if (_legs.empty() && (_currentIndex < 0)) {
return;
}
lockDelegate();
_waypointsChanged = true;
_currentWaypointChanged = true;