From 16d40189c6dc15d3fd97f09ed6809164a039dfd0 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 27 Aug 2019 21:01:40 +0100 Subject: [PATCH] Fix bug in web connection menu launching incorrect web site Resolves #11280. --- gramps/gui/plug/quick/_quickreports.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/gui/plug/quick/_quickreports.py b/gramps/gui/plug/quick/_quickreports.py index b0c6b45a2..c8e1d1718 100644 --- a/gramps/gui/plug/quick/_quickreports.py +++ b/gramps/gui/plug/quick/_quickreports.py @@ -119,11 +119,12 @@ def create_web_connect_menu(dbstate, uistate, nav_group, handle, prefix): ofile.write(MENUITEM.format(prefix=prefix, action=action, label=connect.name)) callback = connect(dbstate, uistate, nav_group, handle) - actions.append((action, - lambda x, y: callback(x))) + actions.append((action, make_web_connect_callback(callback))) ofile.write('\n') return (ofile.getvalue(), actions) +def make_web_connect_callback(func): + return lambda x, y: func(x) def create_quickreport_menu(category, dbstate, uistate, handle, prefix, track=[]): """ This functions querries the registered quick reports with