1
0
Fork 0

Prevent modifying the TO waypoint

This commit is contained in:
Jonathan Redpath 2022-02-13 18:07:58 +00:00
parent b1683b770f
commit 888fbbe81e

View file

@ -769,6 +769,12 @@ var flightPlanController = {
return 3;
}
if (index == me.currentToWptIndex.getValue()) {
return 1;
# TODO - implement the PPOS - DISCONT feature
# me.insertPPOS(thePlan, index - 1);
# me.addDiscontinuity(index - 1, thePlan, 1);
}
if (!me.temporaryFlag[plan]) {
if (text == "CLR" and me.flightplans[2].getWP(index).wp_name == "DISCONTINUITY") {
@ -784,6 +790,7 @@ var flightPlanController = {
var thePlan = plan;
}
# check waypoints database here
var wpFromDB = WaypointDatabase.getWP(text);
if (wpFromDB != nil) {