summaryrefslogtreecommitdiff
path: root/navit/navit.h
diff options
context:
space:
mode:
authormcapdeville <m.capdeville@no-log.org>2017-04-19 19:08:07 +0200
committerPierre GRANDIN <pgrandin@users.noreply.github.com>2017-04-19 10:08:07 -0700
commit75b0417925e9b74878659e459ee8d27d0f0f5dc2 (patch)
tree5787dcc866a230ae1ac26144514701bf521c6a46 /navit/navit.h
parent6c7688b74364681bcaf034be15ae039cbf72c50b (diff)
downloadnavit-75b0417925e9b74878659e459ee8d27d0f0f5dc2.tar.gz
keep active vehicle profile when deactivating vehicle (#217)R7393
When deactivating vehicle, profile is choosen from "car" vehicle_profile or by default the first vehicle_profile in list. So, by example, car_avoid_tolls never work when manually selecting current position (and deactivate vehicle). Now, if there is a selected vehicle profile, we keep it as vehicle_profile (not changing it). Aditionnaly, in internal gui, selecting a vehicle profile when wehicle is deactivated, in gui_internal_cmd_set_active_profile(), call navit_set_vehicleprofile_name() with new vehicle_profile (by name) before setting vehicle_attr to NULL (like in gui_internal_cmd_set_position()). Now, we can switch profile when vehicle is deactivatied and route is update correctly. TO DO : Same in other gui TO TEST : with more than one vehicle enable
Diffstat (limited to 'navit/navit.h')
-rw-r--r--navit/navit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/navit/navit.h b/navit/navit.h
index e8cc29078..898ff6cff 100644
--- a/navit/navit.h
+++ b/navit/navit.h
@@ -117,6 +117,7 @@ struct navigation *navit_get_navigation(struct navit *this_);
struct displaylist *navit_get_displaylist(struct navit *this_);
void navit_layout_switch(struct navit *n);
int navit_set_vehicle_by_name(struct navit *n, const char *name);
+int navit_set_vehicleprofile_name(struct navit *this_, char *name);
int navit_set_layout_by_name(struct navit *n, const char *name);
void navit_disable_suspend(void);
int navit_block(struct navit *this_, int block);