6635: retry of bug 6443, exec missing globals

svn: r21996
This commit is contained in:
Benny Malengier 2013-04-15 09:40:39 +00:00
parent 07b84e5e11
commit 83fb5d353d

View File

@ -346,7 +346,7 @@ class RemoveUnused(tool.Tool, ManagedWindow, UpdateCallback):
editor_str = 'from gramps.gui.editors import %s as editor' % (
self.tables[the_type]['editor']
)
exec(editor_str)
exec(editor_str, globals())
editor(self.dbstate, self.uistate, [], obj)
except WindowActiveError:
pass