From 6aa356590b7dcb777d29ea6a7bfde6960bce7f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 19 Jul 2023 12:41:51 +0200 Subject: [PATCH] mm-origin: Notify emergency number change when we get a location Technically the emergency numbers exported by the origin doesn't change but it's enough to trigger the DBus signal so clients see the updated numbers. --- plugins/provider/mm/calls-mm-origin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/provider/mm/calls-mm-origin.c b/plugins/provider/mm/calls-mm-origin.c index 50f2792..9623ea8 100644 --- a/plugins/provider/mm/calls-mm-origin.c +++ b/plugins/provider/mm/calls-mm-origin.c @@ -670,6 +670,8 @@ on_modem_location_get_3gpp_finish (GObject *source_object, GAsyncResult *res, gp mcc, self->network_country_code, mm_object_get_path (self->mm_obj)); + /* Trigger update of known emergency numbers */ + g_object_notify_by_pspec (G_OBJECT (self), props[PROP_EMERGENCY_NUMBERS]); }