[network-manager-applet/lr/jtojnar-happy: 28/35] mobile-wizard: skip countries with no providers



commit 6df659159b235bdf48397059d9870012117956dd
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Mon Aug 27 15:44:27 2018 +0200

    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.

 src/libnma/nma-mobile-wizard.c | 4 ++++
 1 file changed, 4 insertions(+)
---
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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]