Menu

#2064 Route Manager: Clear List no longer clears airports

2020.4
Fixed
Medium
2024-07-15
2018-10-02
legoboyvdlp
No

Clear List no longer clears airports.

https://i.imgur.com/L07GBoS.png

Pressing Clear List did not remove the waypoints. It merely deactivated the route manager.

I then set up the route manager with one intermediate waypoint (CLN) and activated: Clear List removed CLN, but did not remove the airports.

System: Win 10 Home 64 bit

Discussion

  • legoboyvdlp

    legoboyvdlp - 2018-10-02

    Sorry - didn't put it in right... label / owner incorrect!

     

    Last edit: legoboyvdlp 2018-10-02
  • James Turner

    James Turner - 2018-10-09

    This is becuase they are entered as the departure and destination, so they are present automatically. Has this behaviour changed compared to previous versions? This was not intentional but what it does not feels correct to me.

     
  • James Turner

    James Turner - 2018-10-09
    • status: New --> NeedInfo
    • assigned_to: James Turner
     
  • James Turner

    James Turner - 2020-06-24

    Is this still around? I though we added even a unit-test case for it...

     
  • James Turner

    James Turner - 2020-06-24

    Ah that's as designed: it's a 'clear waypoints' button, not a 'clear everything' button.

    Does it make sense to change it to 'clear everything'? Either are fine.

     
  • legoboyvdlp

    legoboyvdlp - 2020-06-24

    Clear list sounds as though it should clear the entire thing, yes -- there's also some potential confusion as it doesn't clear the waypoints of the procedures, only enroute waypoints.

     
  • legoboyvdlp

    legoboyvdlp - 2020-08-08
    • Milestone: 2018.4.0 --> 2020.2
     
  • James Turner

    James Turner - 2020-08-09

    hmm, we discussed this on the devel list, but I forget what we agreed to do...

     
  • legoboyvdlp

    legoboyvdlp - 2020-08-09

    There didn't seem to be a clear consensus, with one preference for renaming to "clear enroute" and two preferring modifying behaviour to clear everything.

     
  • James Turner

    James Turner - 2020-08-10

    My current feeling is to make it clear everything /every/ : i.e replace the entire FLightPlan with a blank one. Jonathan, how do you feel about that?

     
  • legoboyvdlp

    legoboyvdlp - 2020-08-12

    Absolutely, that sounds great - sorry for not getting back earlier, sourceforge is totally unusable on mobile!

     
  • James Turner

    James Turner - 2020-08-14

    Nothing in life is ever simple! The dialog calls flightpan().cleanPlan(), which calls FlightPlan::clear().

    I don't want to change the behaviour of Nasal flightplan::cleanPlan(), what I think I'll do is a add flightplan().reset(). I'll rename FlightPlan::clear in C++ to clearLegs(), and then make a new C++ clear() which clears everything.

    This will keep any Nasal users of flightPlan.cleanPlan() happy (it will stil call clearLegs, so no behaviour change), and the dialog will clear everything by calling flightPlan.reset()

    Sound okay? Happy with the names? Have I missed any ways this can break any existing aircraft?

     
  • legoboyvdlp

    legoboyvdlp - 2020-08-14

    That sounds fine -- cleanPlan() will still do what it always did, so as the interface is the same it shouldn't break anything.

     
  • Gijs

    Gijs - 2023-12-12
    • status: NeedInfo --> Started
     
  • Gijs

    Gijs - 2023-12-12

    Hi Jonathan and James, from the looks of it, this has never been pushed?

     
  • James Turner

    James Turner - 2023-12-18

    I thoguht we fixes this long ago, hmm.

     
  • Gijs

    Gijs - 2023-12-18

    Apparently not. The route manager dialog still calls flightplan().cleanPlan() , instead of flightplan().reset() (which doesn't exist) as suggested by your comment in https://sourceforge.net/p/flightgear/codetickets/2064/#9dff And I can confirm that the behavior reported by Jonathan is still there.

     

    Last edit: Gijs 2023-12-18
  • Gijs

    Gijs - 2024-07-15

    Actually, I now see that it was committed in [a297c8], but the button in the route manager dialog was never changed to call the new flightplan().clearAll(). I've just pushed the final missing piece in [c54b23] after almost 4 years :-)

     

    Related

    Commit: [c54b23]
    Commit: [a297c8]

  • Gijs

    Gijs - 2024-07-15
    • status: Started --> Fixed
    • Milestone: 2020.2 --> 2020.4
     

Log in to post a comment.

MongoDB Logo MongoDB