diff frontends/src/primitivus/primitivus @ 797:84214df2d837

primitivus: fixed bad closure, resulting in menus bug.
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 18:02:37 +0100
parents 5642939d254e
children 7f2082b192ed
line wrap: on
line diff
--- 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