From 296e8ca5627c03951e3fabeffd99982cfc517f26 Mon Sep 17 00:00:00 2001 From: kulath Date: Sat, 20 Jun 2015 00:11:53 +0200 Subject: [PATCH] fix testcasegenerator AttributeError --- gramps/plugins/tool/testcasegenerator.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gramps/plugins/tool/testcasegenerator.py b/gramps/plugins/tool/testcasegenerator.py index b9a13eb5b..dda8740ad 100644 --- a/gramps/plugins/tool/testcasegenerator.py +++ b/gramps/plugins/tool/testcasegenerator.py @@ -130,15 +130,15 @@ class TestcaseGenerator(tool.BatchTool): def __init__(self, dbstate, user, options_class, name, callback=None): uistate = user.uistate if uistate: - parent_window = uistate.window + self.parent_window = uistate.window else: - parent_window = None + self.parent_window = None self.person = None if dbstate.db.readonly: return tool.BatchTool.__init__(self, dbstate, user, options_class, name, - parent=parent_window) + parent=self.parent_window) if self.fail: return @@ -284,7 +284,8 @@ class TestcaseGenerator(tool.BatchTool): while Gtk.events_pending(): Gtk.main_iteration() - self.progress = ProgressMeter(_('Generating testcases'),'', parent=self.window) + self.progress = ProgressMeter(_('Generating testcases'),'', + parent=self.parent_window) self.transaction_count = 0; if self.options.handler.options_dict['lowlevel']: