summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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