Fix bug in web connection menu launching incorrect web site

Resolves #11280.
This commit is contained in:
Nick Hall 2019-08-27 21:01:40 +01:00
parent 4b9dba0c53
commit 16d40189c6

View File

@ -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('</submenu></placeholder>\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