From 47afc70552a9b67b179f918575940182bdae29ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sun, 9 Apr 2023 16:18:47 +0200 Subject: [PATCH] mm-provider: Don't exit early when country code matches This makes sure we fetch emergency numbers in any case (and also further things should they be added later). --- plugins/provider/mm/calls-mm-origin.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/provider/mm/calls-mm-origin.c b/plugins/provider/mm/calls-mm-origin.c index 4b26173..5d95bab 100644 --- a/plugins/provider/mm/calls-mm-origin.c +++ b/plugins/provider/mm/calls-mm-origin.c @@ -796,10 +796,7 @@ get_sim_ready_cb (MMModem *modem, self->sim = mm_modem_get_sim_finish (modem, res, NULL); code = get_country_iso_for_mcc (mm_sim_get_imsi (self->sim)); - if (code) { - if (g_strcmp0 (self->country_code, code) == 0) - return; - + if (code && g_strcmp0 (self->country_code, code)) { g_debug ("Setting the country code to `%s'", code); self->country_code = g_strdup (code);