From 61e7aa042b08667364ee2511de9605760f544e84 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 14 Feb 2018 16:49:04 +0100 Subject: 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 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libnma/nma-mobile-wizard.c b/src/libnma/nma-mobile-wizard.c index ae436797..169d1712 100644 --- a/src/libnma/nma-mobile-wizard.c +++ b/src/libnma/nma-mobile-wizard.c @@ -824,14 +824,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 -- cgit v1.2.1