[network-manager-applet/lr/libnma-gtk-builder: 5/5] nma/mobile-wizard: allow proceeding to the next page in unlisted country



commit a61bc51489a60af15de02c312c4c371a9a256853
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Wed Feb 14 16:49:04 2018 +0100

    nma/mobile-wizard: allow proceeding to the next page in unlisted country
    
    The "My country is not listed" entry has a NULL country_info in the
    model, but still is a valid choice.

 src/libnma/nma-mobile-wizard.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/libnma/nma-mobile-wizard.c b/src/libnma/nma-mobile-wizard.c
index 82389e5..99ef682 100644
--- a/src/libnma/nma-mobile-wizard.c
+++ b/src/libnma/nma-mobile-wizard.c
@@ -816,14 +816,14 @@ static void
 country_update_complete (NMAMobileWizard *self)
 {
        NMAMobileWizardPrivate *priv = NMA_MOBILE_WIZARD_GET_PRIVATE (self);
-       NMACountryInfo *country_info;
+       GtkTreeSelection *selection;
+
+       selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->country_view));
+       g_assert (selection);
 
-       country_info = get_selected_country (self);
        gtk_assistant_set_page_complete (GTK_ASSISTANT (self),
                                         priv->country_page,
-                                        (!!country_info));
-       if (country_info)
-               nma_country_info_unref (country_info);
+                                        gtk_tree_selection_get_selected (selection, NULL, NULL));
 }
 
 static void


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