Prevent modifying the TO waypoint
This commit is contained in:
parent
b1683b770f
commit
888fbbe81e
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue