~ubuntu-branches/ubuntu/wily/gramps/wily

« back to all changes in this revision

Viewing changes to gramps/plugins/tool/dateparserdisplaytest.py

  • Committer: Package Import Robot
  • Author(s): Ross Gammon
  • Date: 2015-05-16 11:49:41 UTC
  • mfrom: (39.1.17 sid)
  • Revision ID: package-import@ubuntu.com-20150516114941-hiku87mi6p7wbjba
Tags: 4.1.3~dfsg-1
* New upstream release
* Fixes manpage desription of import function (LP: #1427444)
* Fixes crash when closing detatched gramplet (Closes: #785393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        tool.Tool.__init__(self, dbstate, options_class, name)
64
64
        if uistate:
65
65
            # Running with gui -> Show message
66
 
            QuestionDialog(_("Start date test?"),_("This test will create many persons and events in the current database. Do you really want to run this test?"),_("Run test"),self.run_tool)
 
66
            self.parent_window = uistate.window
 
67
            QuestionDialog(_("Start date test?"),
 
68
                           _("This test will create many persons and events " \
 
69
                           "in the current database. Do you really want to " \
 
70
                           "run this test?"),
 
71
                           _("Run test"),
 
72
                           self.run_tool,
 
73
                           parent=self.parent_window)
67
74
        else:
 
75
            self.parent_window = None
68
76
            self.run_tool()
69
77
 
70
78
 
71
79
    def run_tool(self):
72
 
        self.progress = ProgressMeter(_('Running Date Test'),'')
 
80
        self.progress = ProgressMeter(_('Running Date Test'),'',
 
81
                                      parent=self.parent_window)
73
82
        self.progress.set_pass(_('Generating dates'),
74
83
                               4)
75
84
        dates = []