GNOME Bugzilla – Bug 784013
Routing from place bubble broken for transit
Last modified: 2017-06-20 20:17:32 UTC
As a fallout from bug https://bugzilla.gnome.org/show_bug.cgi?id=783089 routing is now broken when the last uses state was "transit" and the user initiates a "route to here" action from a place bubble. The problem is that some of that code was still assuming the "reset to car as the default" behaviour and now gets into a mixed state telling the routing delegator to use non-transit mode while the transport mode is set to "transit".
Created attachment 354122 [details] [review] routingDelegator: Add function to reset This function will reset the turn-by-turn route object or the transit plan for transit mode. This will be used by the map bubble to reset when requesting a route to the current object.
Created attachment 354123 [details] [review] mapBubble: Don't hard-code to non-transit mode Setting non-transit here unconditionally results in a inconsitent state when the mode is set to transit. Also reset the appropriate object depending on routing mode.
Attachment 354122 [details] pushed as 9f9c94b - routingDelegator: Add function to reset Attachment 354123 [details] pushed as 10f69ec - mapBubble: Don't hard-code to non-transit mode