iface-modem-3gpp-profile-manager: add default index_field
If check_support functions are not defined when implementing iface-modem-3gpp-profile-manager, set "profile-id" as default index_field.
This commit is contained in:
@@ -1608,7 +1608,10 @@ profile_manager_list_profiles_check_ready (MMIfaceModem3gppProfileManager *self,
|
|||||||
if (!mm_iface_modem_3gpp_profile_manager_list_profiles_finish (self, res, NULL, &error))
|
if (!mm_iface_modem_3gpp_profile_manager_list_profiles_finish (self, res, NULL, &error))
|
||||||
mm_obj_dbg (self, "profile management support check failed: couldn't load profile list: %s", error->message);
|
mm_obj_dbg (self, "profile management support check failed: couldn't load profile list: %s", error->message);
|
||||||
else {
|
else {
|
||||||
/* profile management is supported! */
|
/* profile management is supported!
|
||||||
|
* We are here because the modem type did not define the check_support functions,
|
||||||
|
* but we need anyway to set index_field, so let's use "profile-id" as default */
|
||||||
|
mm_gdbus_modem3gpp_profile_manager_set_index_field (ctx->skeleton, "profile-id");
|
||||||
g_object_set_qdata (G_OBJECT (self), supported_quark, GUINT_TO_POINTER (TRUE));
|
g_object_set_qdata (G_OBJECT (self), supported_quark, GUINT_TO_POINTER (TRUE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user