From 0d0ad722d9da2039ad71ece9c8ae4b1786c7f757 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sat, 11 Dec 2021 23:01:04 +0100 Subject: iface-modem-3gpp-profile-manager: initialize the 'IndexField' property --- src/mm-iface-modem-3gpp-profile-manager.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/mm-iface-modem-3gpp-profile-manager.c') 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); } -- cgit v1.2.3-70-g09d2