diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-12-11 23:01:04 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-12-26 10:12:05 +0100 |
commit | 0d0ad722d9da2039ad71ece9c8ae4b1786c7f757 (patch) | |
tree | d9076b44272057e490bedf8bd9049b2a59d44b5a /src/mm-iface-modem-3gpp-profile-manager.c | |
parent | f97957046b6861631483b778945ebaf5f083f70d (diff) |
iface-modem-3gpp-profile-manager: initialize the 'IndexField' property
Diffstat (limited to 'src/mm-iface-modem-3gpp-profile-manager.c')
-rw-r--r-- | src/mm-iface-modem-3gpp-profile-manager.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mm-iface-modem-3gpp-profile-manager.c b/src/mm-iface-modem-3gpp-profile-manager.c index 088bc6c5..0dfa9026 100644 --- a/src/mm-iface-modem-3gpp-profile-manager.c +++ b/src/mm-iface-modem-3gpp-profile-manager.c @@ -1465,19 +1465,22 @@ check_support_ready (MMIfaceModem3gppProfileManager *self, { InitializationContext *ctx; g_autoptr(GError) error = NULL; + g_autofree gchar *index_field = NULL; - if (!MM_IFACE_MODEM_3GPP_PROFILE_MANAGER_GET_INTERFACE (self)->check_support_finish (self, res, &error)) { + ctx = g_task_get_task_data (task); + + if (!MM_IFACE_MODEM_3GPP_PROFILE_MANAGER_GET_INTERFACE (self)->check_support_finish (self, res, &index_field, &error)) { if (error) { /* This error shouldn't be treated as critical */ mm_obj_dbg (self, "profile management support check failed: %s", error->message); } } else { /* profile management is supported! */ + mm_gdbus_modem3gpp_profile_manager_set_index_field (ctx->skeleton, index_field); g_object_set_qdata (G_OBJECT (self), supported_quark, GUINT_TO_POINTER (TRUE)); } /* Go on to next step */ - ctx = g_task_get_task_data (task); ctx->step++; interface_initialization_step (task); } |