# HG changeset patch # User Goffi # Date 1391533357 -3600 # Node ID 84214df2d83782899a878f021710774ebc8a2caf # Parent 46aa5ada61bfef352c0e624a8027c3fd4cb83484 primitivus: fixed bad closure, resulting in menus bug. diff -r 46aa5ada61bf -r 84214df2d837 frontends/src/primitivus/primitivus --- a/frontends/src/primitivus/primitivus Tue Feb 04 18:02:35 2014 +0100 +++ b/frontends/src/primitivus/primitivus Tue Feb 04 18:02:37 2014 +0100 @@ -305,7 +305,7 @@ assert(type_=="NORMAL") #TODO: manage other types if len(path) != 2: raise NotImplementedError("Menu with a path != 2 are not implemented yet") - menu.addMenu(path_i18n[0], path_i18n[1], lambda menu: add_menu_cb(id_)) + menu.addMenu(path_i18n[0], path_i18n[1], lambda menu,id_=id_: add_menu_cb(id_)) menu_roller = sat_widgets.MenuRoller([(_('Main menu'),menu)]) return menu_roller