From 612c4665aeb20a445319ec65d5ca9e20d0dfa97c Mon Sep 17 00:00:00 2001 From: Josip Date: Sat, 16 May 2015 03:56:09 +0200 Subject: [PATCH] add parent to gedcom import report dialog --- gramps/plugins/lib/libgedcom.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index bac70c4b5..885134ffa 100644 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -2735,7 +2735,12 @@ class GedcomParser(UpdateCallback): else: message = _("GEDCOM import report: %s errors detected") % \ self.number_of_errors - self.user.info(message, "".join(self.errors), monospaced=True) + if hasattr(self.user.uistate, 'window'): + parent_window = self.user.uistate.window + else: + parent_window = None + self.user.info(message, "".join(self.errors), + parent=parent_window, monospaced=True) def __clean_up(self): """