0007014: Errors handling owner/submitter information in GEDCOM files.

Only import researcher from GEDCOM or XML if the family tree was
originally empty.
This commit is contained in:
kulath
2015-02-02 18:56:46 +00:00
parent 3e3abbf3e1
commit b69171f1a1
5 changed files with 33 additions and 3 deletions

View File

@@ -297,7 +297,10 @@ class CLIManager(object):
# apply preferred researcher if loaded file has none
res = self.dbstate.db.get_researcher()
owner = get_researcher()
if res.get_name() == "" and owner.get_name() != "":
# If the DB Owner Info is empty and
# [default] Researcher is not empty and
# database is empty, then copy default researcher to DB owner
if res.is_empty() and not owner.is_empty() and self.dbstate.db.is_empty():
self.dbstate.db.set_researcher(owner)
name_displayer.set_name_format(self.dbstate.db.name_formats)