Geography : better place selection if we have a place history. #05742 note 25518
svn: r20448
This commit is contained in:
parent
0d60717443
commit
cb3d94f816
@ -811,7 +811,11 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
"""
|
"""
|
||||||
Link an existing place using longitude and latitude of location centered
|
Link an existing place using longitude and latitude of location centered
|
||||||
on the map
|
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, [])
|
selector = SelectPlace(self.dbstate, self.uistate, [])
|
||||||
place = selector.run()
|
place = selector.run()
|
||||||
if place:
|
if place:
|
||||||
|
@ -187,12 +187,11 @@ class GeoPlaces(GeoGraphyView):
|
|||||||
all handling of visibility is now in rebuild_trees, see that for more
|
all handling of visibility is now in rebuild_trees, see that for more
|
||||||
information.
|
information.
|
||||||
"""
|
"""
|
||||||
#active = self.uistate.get_active('Place')
|
active = self.uistate.get_active('Place')
|
||||||
#if active:
|
if active:
|
||||||
# self._createmap(active)
|
self._createmap(active)
|
||||||
#else:
|
else:
|
||||||
# self._createmap(None)
|
self._createmap(None)
|
||||||
self._createmap(None)
|
|
||||||
|
|
||||||
def _create_one_place(self,place):
|
def _create_one_place(self,place):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user