diff --git a/gramps/plugins/lib/maps/osmgps.py b/gramps/plugins/lib/maps/osmgps.py index 65625a79e..5d3c19f2a 100644 --- a/gramps/plugins/lib/maps/osmgps.py +++ b/gramps/plugins/lib/maps/osmgps.py @@ -504,7 +504,7 @@ class OsmGps: elif event.button == 2 and event.type == Gdk.EventType.BUTTON_RELEASE: self.end_selection = current self.zone_selection = False - elif Gdk.Event.triggers_context_menu(): + elif Gdk.Event.triggers_context_menu(event): self.build_nav_menu(osm, event, lat, lon) else: self.save_center(lat, lon)