9598: Geography : Add a message to clarify things in geoplaces

This commit is contained in:
SNoiraud 2016-07-26 10:01:34 +02:00
parent 92f7631fe3
commit 480819dde8

View File

@ -288,9 +288,13 @@ class GeoPlaces(GeoGraphyView):
self._create_one_place(place)
progress.step()
progress.close()
elif place_x:
elif place_x != None:
place = dbstate.db.get_place_from_handle(place_x)
self._create_one_place(place)
self.message_layer.add_message(
_("Right click on the map and select 'show all places'"
" to show all known places with coordinates. "
"You can use filtering."))
if place.get_latitude() != "" and place.get_longitude() != "":
latitude, longitude = conv_lat_lon(place.get_latitude(),
place.get_longitude(),
@ -298,6 +302,12 @@ class GeoPlaces(GeoGraphyView):
self.osm.set_center_and_zoom(float(latitude), float(longitude),
int(config.get(
"geography.zoom_when_center")))
else:
self.message_layer.add_message(
_("Right click on the map and select 'show all places'"
" to show all known places with coordinates. "
" You can use the history to navigate on the map. "
"You can use filtering."))
_LOG.debug(" stop createmap.")
_LOG.debug("%s", time.strftime("begin sort : "
"%a %d %b %Y %H:%M:%S", time.gmtime()))