From 48475259951f3209177c00792edbd581ef15040c Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Fri, 15 Oct 2010 17:56:37 +0000 Subject: [PATCH] Issue 4293, problems with LagecyGedcom and empty events. svn: r15997 --- src/plugins/lib/libgedcom.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index ce63d88b6..27e2f73e9 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -118,6 +118,7 @@ import LdsUtils import Utils from DateHandler._DateParser import DateParser from gen.db.dbconst import EVENT_KEY +from QuestionDialog import WarningDialog #------------------------------------------------------------------------- # @@ -5434,6 +5435,11 @@ class GedcomParser(UpdateCallback): if state.genby == "GRAMPS": self.gedsource = self.gedmap.get_from_source_tag(line.data) + if state.genby.upper() == "LEGACY": + fname = os.path.basename(self.filename) + WarningDialog(_("Import of GEDCOM file %s with DEST=%s, could cause errors in the resulting database!") % \ + (fname, state.genby), _("Look for nameless events.")) + def __header_plac(self, line, state): """ @param line: The current line in GedLine format