Ensure no popup under CLI for warning

This commit is contained in:
prculley 2016-08-03 11:56:08 -05:00
parent f43452e844
commit ce93e0505f

View File

@ -7301,13 +7301,12 @@ class GedcomParser(UpdateCallback):
# coding is now wrong. # coding is now wrong.
if self.genby.upper() == "LEGACY": if self.genby.upper() == "LEGACY":
fname = os.path.basename(self.filename) fname = os.path.basename(self.filename)
WarningDialog( # parent-OK self.user.warn(
_("Import of GEDCOM file %(filename)s with DEST=%(by)s, " _("Import of GEDCOM file %(filename)s with DEST=%(by)s, "
"could cause errors in the resulting database!") "%(by)s, could cause errors in the resulting database!") %
% {'filename': fname, 'by': self.genby}, {'filename': fname, 'by': self.genby},
_("Look for nameless events."), _("Look for nameless events.")
parent=self.user.uistate.window )
)
def __header_char(self, line, state): def __header_char(self, line, state):
""" """