Multiple Flight-Plan clears are a no-op
This commit is contained in:
parent
df2ab15e6c
commit
1c4e3263f8
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue