Geography : better place selection if we have a place history. #05742 note 25518

svn: r20447
This commit is contained in:
Serge Noiraud 2012-09-25 16:59:16 +00:00
parent 95faa79b63
commit ce297b8a8b

View File

@ -953,7 +953,11 @@ class GeoGraphyView(osmGpsMap, NavigationView):
"""
Link an existing place using longitude and latitude of location centered
on the map
If we have a place history, we must show all places to avoid an empty
place selection in the PlaceSelection.
"""
if self.uistate.get_active('Place'):
self._createmap(None)
selector = SelectPlace(self.dbstate, self.uistate, [])
place = selector.run()
if place: