Geography : not all places shown in the status bar when the mouse is over one marker.

crash when we change the map provider in geoplace.
            change the icon for geoclose.


svn: r19404
This commit is contained in:
Serge Noiraud
2012-04-29 09:24:40 +00:00
parent 65fe82ae7c
commit 50b3e4b56a
6 changed files with 11 additions and 2 deletions

View File

@@ -174,6 +174,7 @@ class GeoPlaces(GeoGraphyView):
"""
Rebuild the tree with the given places handle as the root.
"""
self.places_found = []
self.build_tree()
def show_all_places(self, menu, event, lat, lon):
@@ -251,7 +252,10 @@ class GeoPlaces(GeoGraphyView):
self._create_one_place(place)
else:
if place_x is None:
places_handle = dbstate.db.iter_place_handles()
try:
places_handle = dbstate.db.get_place_handles()
except:
return
for place_hdl in places_handle:
place = dbstate.db.get_place_from_handle(place_hdl)
self._create_one_place(place)