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

@ -163,7 +163,7 @@ class GeoClose(GeoGraphyView):
This assumes that this icon has already been registered
as a stock icon.
"""
return 'geo-show-family'
return 'gramps-relation'
def get_viewtype_stock(self):
"""Type of view in category
@ -198,6 +198,7 @@ class GeoClose(GeoGraphyView):
self.place_list_ref = []
self.all_place_list = []
self.sort = []
self.places_found = []
self.place_without_coordinates = []
self.remove_all_gps()
self.remove_all_markers()

View File

@ -174,6 +174,7 @@ class GeoEvents(GeoGraphyView):
"""
Rebuild the tree with the given events handle as the root.
"""
self.places_found = []
self.build_tree()
def show_all_events(self, menu, event, lat, lon):

View File

@ -198,6 +198,7 @@ class GeoFamClose(GeoGraphyView):
self.place_list_ref = []
self.all_place_list = []
self.sort = []
self.places_found = []
self.place_without_coordinates = []
self.remove_all_gps()
self.remove_all_markers()

View File

@ -173,6 +173,7 @@ class GeoFamily(GeoGraphyView):
"""
Rebuild the tree with the given person handle as the root.
"""
self.places_found = []
self.build_tree()
def build_tree(self):

View File

@ -201,6 +201,7 @@ class GeoPerson(GeoGraphyView):
"""
Rebuild the tree with the given person handle as the root.
"""
self.places_found = []
if handle:
self.change_active(handle)
self._createmap(handle)

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)