From: Marcel Holtmann Date: Fri, 7 Aug 2009 17:06:54 +0000 (-0700) Subject: Report AutoConnect as false if not a favorite service X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~3342 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1a77982c2fb935a2e78b5582687c4ab40ff4a4f;p=profile%2Fivi%2Fconnman.git Report AutoConnect as false if not a favorite service --- diff --git a/src/service.c b/src/service.c index f990e29..639ade8 100644 --- a/src/service.c +++ b/src/service.c @@ -396,8 +396,12 @@ static DBusMessage *get_properties(DBusConnection *conn, connman_dbus_dict_append_variant(&dict, "Favorite", DBUS_TYPE_BOOLEAN, &service->favorite); - connman_dbus_dict_append_variant(&dict, "AutoConnect", + if (service->favorite == TRUE) + connman_dbus_dict_append_variant(&dict, "AutoConnect", DBUS_TYPE_BOOLEAN, &service->autoconnect); + else + connman_dbus_dict_append_variant(&dict, "AutoConnect", + DBUS_TYPE_BOOLEAN, &service->favorite); if (service->name != NULL) connman_dbus_dict_append_variant(&dict, "Name",