From ce93e0505f8ed5790b74b70c51f7dc9ee8f0984c Mon Sep 17 00:00:00 2001 From: prculley Date: Wed, 3 Aug 2016 11:56:08 -0500 Subject: [PATCH] Ensure no popup under CLI for warning --- gramps/plugins/lib/libgedcom.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index 0cb1657f5..526a890f8 100644 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -7301,13 +7301,12 @@ class GedcomParser(UpdateCallback): # coding is now wrong. if self.genby.upper() == "LEGACY": fname = os.path.basename(self.filename) - WarningDialog( # parent-OK - _("Import of GEDCOM file %(filename)s with DEST=%(by)s, " - "could cause errors in the resulting database!") - % {'filename': fname, 'by': self.genby}, - _("Look for nameless events."), - parent=self.user.uistate.window - ) + self.user.warn( + _("Import of GEDCOM file %(filename)s with DEST=%(by)s, " + "%(by)s, could cause errors in the resulting database!") % + {'filename': fname, 'by': self.genby}, + _("Look for nameless events.") + ) def __header_char(self, line, state): """