summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-02-14 16:49:04 +0100
committerLubomir Rintel <lkundrak@v3.sk>2018-03-14 08:24:08 +0100
commit61e7aa042b08667364ee2511de9605760f544e84 (patch)
treed83c2edb52be174d21acef38743cf21097bcd7b2
parent1f6331b2192eff72e4209eb063f244adcf3f0a5b (diff)
downloadnetwork-manager-applet-lr/libnma-gtk-builder.tar.gz
nma/mobile-wizard: allow proceeding to the next page in unlisted countrylr/libnma-gtk-builder
The "My country is not listed" entry has a NULL country_info in the model, but still is a valid choice.
-rw-r--r--src/libnma/nma-mobile-wizard.c10
1 files 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