vvim / routetool

Using Google Maps API to add locations and calculate the shortest route by Traveling Salesman Algorithm
1 stars 0 forks source link

(!!) Editing Routes: when loaded old route, than asking to save (but cancel), make sure the flag is not going away #42

Closed vvim closed 8 years ago

vvim commented 8 years ago
  1. load old route
  2. press "Vervoerslijst aanmaken"
  3. a new window appears, but you press CANCEL
  4. make sure the FLAG is not reset at that instance, the FLAG should still be the id of the route:

    [ void Form::on_routeLoadedCancel_button_clicked() ] user request to cancel any changes made to route [ void Form::on_routeLoadedCancel_button_clicked() ] 1. we do not remove the route on the screen [ void Form::on_routeLoadedCancel_button_clicked() ] 2. but we will remove the FLAG set in TransportationListWriter [ void Form::on_routeLoadedCancel_button_clicked() ] flag used to be: "Mon Dec 21 2015" [ void Form::on_routeLoadedCancel_button_clicked() ] but is now reset to: "" [ void Form::on_routeLoadedCancel_button_clicked() ] 3. and stop showing the name of the route in the UI

vvim commented 8 years ago

at the moment, this happens, so this is currently a bug...

At what point does transportationlistWriter.getCurrentlyEditedRoute() get reset?? by:

vvim commented 8 years ago

seems solved, but we keep it in mind to avoid future mistakes.