summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-08-27 15:44:27 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-10-26 11:48:50 +0200
commit6df659159b235bdf48397059d9870012117956dd (patch)
tree418773520f45b982e434eadf47cc43cb4bc4d8be
parent486030365e8baf24f73cb85ae9814aa3036d1a99 (diff)
downloadnetwork-manager-applet-6df659159b235bdf48397059d9870012117956dd.tar.gz
mobile-wizard: skip countries with no providers
They just clutter the list unnecessarily -- the user shall select "My country is not listed" to fill in the access method and eventyally the APN manually.
-rw-r--r--src/libnma/nma-mobile-wizard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libnma/nma-mobile-wizard.c b/src/libnma/nma-mobile-wizard.c
index 3f48d3f6..e7ad3807 100644
--- a/src/libnma/nma-mobile-wizard.c
+++ b/src/libnma/nma-mobile-wizard.c
@@ -765,6 +765,10 @@ add_one_country (gpointer key, gpointer value, gpointer user_data)
g_assert (key);
+ if ( nma_country_info_get_country_code (country_info)
+ && !nma_country_info_get_providers (country_info))
+ return;
+
gtk_tree_store_append (GTK_TREE_STORE (priv->country_store), &country_iter, NULL);
gtk_tree_store_set (GTK_TREE_STORE (priv->country_store),
&country_iter,