Leave nop sites out of the preference dialog
authorAndy Spencer <andy753421@gmail.com>
Sun, 25 Sep 2011 19:47:11 +0000 (19:47 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 25 Sep 2011 19:47:11 +0000 (19:47 +0000)
src/aweather-gui.c

index e3ef2ab..0f87d43 100644 (file)
@@ -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);