Geography View: Fix number of arguments in add_bookmark method

add_bookmark() takes 2 positional arguments but 3 were given

Fixes #12718
This commit is contained in:
SNoiraud 2022-10-22 10:00:39 +02:00 committed by Nick Hall
parent 181e2d8540
commit 97434a0136

View File

@ -193,11 +193,12 @@ class GeoGraphyView(OsmGps, NavigationView):
"""
self.build_tree()
def add_bookmark(self, menu):
def add_bookmark(self, menu, handle):
"""
Add the place to the bookmark
"""
dummy_menu = menu
dummy_hdle = handle
mlist = self.selected_handles()
if mlist:
self.bookmarks.add(mlist[0])