diff options
Diffstat (limited to 'navit/vehicle.c')
-rw-r--r-- | navit/vehicle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c index 31907b8ec..331042d9a 100644 --- a/navit/vehicle.c +++ b/navit/vehicle.c @@ -247,6 +247,10 @@ vehicle_set_attr(struct vehicle *this_, struct attr *attr) int ret=1; if (this_->meth.set_attr) ret=this_->meth.set_attr(this_->priv, attr); + /* attr_profilename probably is never used by vehicle itself but it's used to control the + routing engine. So any vehicle should allow to set and read it. */ + if(attr->type == attr_profilename) + ret=1; if (ret == 1 && attr->type == attr_log_gpx_desc) { g_free(this_->gpx_desc); this_->gpx_desc = attr->u.str; |