diff --git a/gramps/plugins/tool/testcasegenerator.py b/gramps/plugins/tool/testcasegenerator.py index b4d342862..4b78576e4 100644 --- a/gramps/plugins/tool/testcasegenerator.py +++ b/gramps/plugins/tool/testcasegenerator.py @@ -291,9 +291,11 @@ class TestcaseGenerator(tool.BatchTool): def run_tool(self, cli=False): self.cli = cli - if( not cli): + if (not cli): while Gtk.events_pending(): Gtk.main_iteration() + else: + self.window = None self.progress = ProgressMeter(_('Generating testcases'),'', parent=self.window)