From e5780677f60a6b1d07296a2ed06ace8e4a3737bb Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Wed, 18 Jan 2023 19:26:11 +0100 Subject: [PATCH] mm-origin: Chain up to to parent's constructed() early Not strictly needed here, because we don't depend on the parent being constructed but this is how it should generally be done. --- plugins/provider/mm/calls-mm-origin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/provider/mm/calls-mm-origin.c b/plugins/provider/mm/calls-mm-origin.c index 210ff24..319b57f 100644 --- a/plugins/provider/mm/calls-mm-origin.c +++ b/plugins/provider/mm/calls-mm-origin.c @@ -790,6 +790,8 @@ constructed (GObject *object) CallsMMOrigin *self = CALLS_MM_ORIGIN (object); MmGdbusModemVoice *gdbus_voice; + G_OBJECT_CLASS (calls_mm_origin_parent_class)->constructed (object); + self->name = modem_get_name (mm_object_get_modem (self->mm_obj)); mm_modem_get_sim (mm_object_get_modem (self->mm_obj), @@ -815,7 +817,6 @@ constructed (GObject *object) NULL, (GAsyncReadyCallback) list_calls_cb, self); - G_OBJECT_CLASS (calls_mm_origin_parent_class)->constructed (object); }