summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-10-10 18:12:35 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-10-10 18:31:23 +0200
commit637084988c16f9ebbe35040a867a50c5fe24eb9f (patch)
tree68542e2201a9d8d09235360d44f5e2bfd71a6de7 /src
parentafd19a636ef3041b7f1ad128b4a017e0fe3f00ac (diff)
downloadconnman-637084988c16f9ebbe35040a867a50c5fe24eb9f.tar.gz
connman-637084988c16f9ebbe35040a867a50c5fe24eb9f.tar.bz2
connman-637084988c16f9ebbe35040a867a50c5fe24eb9f.zip
service: Update service order when changing the favorite flag
If the service order is not changed at the same time as the favorite status, the service may stay on top of the service list despite not being a favorite anymore. Patch based on an initial fix from Danny Jeongseok Seo <s.seo@samsung.com>.
Diffstat (limited to 'src')
-rw-r--r--src/service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index dc890785..c135f42e 100644
--- a/src/service.c
+++ b/src/service.c
@@ -3797,6 +3797,7 @@ int __connman_service_set_favorite(struct connman_service *service,
return -EALREADY;
service->favorite = favorite;
+ service->order = __connman_service_get_order(service);
favorite_changed(service);