From fdadfbd836416b7f62f9d2467a278a5993a79953 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 30 Apr 2016 23:49:47 -0400 Subject: [PATCH] testcasegenerator: allow to run from cli --- gramps/plugins/tool/testcasegenerator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)