diff options
author | Pablo Correa Gómez <ablocorrea@hotmail.com> | 2022-10-21 15:05:55 +0200 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2022-12-22 19:05:28 +0100 |
commit | 235cadcd0bec9898f458fb738d2d8432e8090aea (patch) | |
tree | d951724e028a8b702e3e40c2ec39fa6feeeb60fd | |
parent | 47acab2c78b8a1c56cc96d1fc28c24dde228a0a7 (diff) | |
download | gnome-control-center-235cadcd0bec9898f458fb738d2d8432e8090aea.tar.gz |
wwan: wait for apn_list to exist to add SIM providers
This avoids the situation where a duplicate entry is created if
Settings is started with the wwan panel disabled, a previous connection
exists, and the panel is later enabled.
Fixes #1468
-rw-r--r-- | panels/wwan/cc-wwan-data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/panels/wwan/cc-wwan-data.c b/panels/wwan/cc-wwan-data.c index 3bb7ad78f..dbe2dcac4 100644 --- a/panels/wwan/cc-wwan-data.c +++ b/panels/wwan/cc-wwan-data.c @@ -281,7 +281,7 @@ wwan_data_update_apn_list_db (CcWwanData *self) return; if (!self->apn_list) - self->apn_list = g_list_store_new (CC_TYPE_WWAN_DATA_APN); + return; if (!self->apn_db) self->apn_db = nma_mobile_providers_database_new_sync (NULL, NULL, NULL, &error); |