6635: retry of bug 6443, exec missing globals
svn: r21996
This commit is contained in:
parent
07b84e5e11
commit
83fb5d353d
@ -346,7 +346,7 @@ class RemoveUnused(tool.Tool, ManagedWindow, UpdateCallback):
|
|||||||
editor_str = 'from gramps.gui.editors import %s as editor' % (
|
editor_str = 'from gramps.gui.editors import %s as editor' % (
|
||||||
self.tables[the_type]['editor']
|
self.tables[the_type]['editor']
|
||||||
)
|
)
|
||||||
exec(editor_str)
|
exec(editor_str, globals())
|
||||||
editor(self.dbstate, self.uistate, [], obj)
|
editor(self.dbstate, self.uistate, [], obj)
|
||||||
except WindowActiveError:
|
except WindowActiveError:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user