From: Andy Spencer Date: Sun, 25 Sep 2011 19:47:11 +0000 (+0000) Subject: Leave nop sites out of the preference dialog X-Git-Tag: v0.6~15 X-Git-Url: http://pileus.org/git/?p=aweather;a=commitdiff_plain;h=c77f73c18bba99728178057fcce0441aab3a4026 Leave nop sites out of the preference dialog --- diff --git a/src/aweather-gui.c b/src/aweather-gui.c index e3ef2ab..0f87d43 100644 --- a/src/aweather-gui.c +++ b/src/aweather-gui.c @@ -355,7 +355,7 @@ static void site_setup(AWeatherGui *self) gtk_tree_store_append(store, &state, NULL); gtk_tree_store_set (store, &state, 0, cities[i].code, 1, cities[i].name, -1); - } else { + } else if (cities[i].type == LOCATION_CITY) { gtk_tree_store_append(store, &city, &state); gtk_tree_store_set (store, &city, 0, cities[i].code, 1, cities[i].name, -1);