From 480819dde8205566f516dbc20beb90585646276c Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Tue, 26 Jul 2016 10:01:34 +0200 Subject: [PATCH] 9598: Geography : Add a message to clarify things in geoplaces --- gramps/plugins/view/geoplaces.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/view/geoplaces.py b/gramps/plugins/view/geoplaces.py index 311cf4506..e187a3d23 100644 --- a/gramps/plugins/view/geoplaces.py +++ b/gramps/plugins/view/geoplaces.py @@ -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()))