Merge pull request #215 from prculley/dialog

Bug 8128 for libgedcom; Ensure no popup under CLI for warning
This commit is contained in:
Paul Franklin 2016-08-03 20:24:05 +00:00 committed by GitHub
commit 2a7907c6c1

View File

@ -7301,12 +7301,11 @@ class GedcomParser(UpdateCallback):
# coding is now wrong.
if self.genby.upper() == "LEGACY":
fname = os.path.basename(self.filename)
WarningDialog( # parent-OK
self.user.warn(
_("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
"%(by)s, could cause errors in the resulting database!") %
{'filename': fname, 'by': self.genby},
_("Look for nameless events.")
)
def __header_char(self, line, state):