Fix bug that was preventing custom recipes from working correctly.

This commit is contained in:
Kovid Goyal 2008-03-29 21:47:03 +00:00
parent 2a992bb981
commit 549c3991de

View File

@ -70,6 +70,8 @@ class CustomNewMenuItem(QAction):
QAction.__init__(self, QIcon(':/images/user_profile.svg'), title, parent) QAction.__init__(self, QIcon(':/images/user_profile.svg'), title, parent)
self.title = title self.title = title
self.recipe = compile_recipe(script) self.recipe = compile_recipe(script)
print self.recipe.title
print script
self.recipe.gui_recipe_script = script self.recipe.gui_recipe_script = script
class CustomNewsMenu(QMenu): class CustomNewsMenu(QMenu):