4666: GEDCOM import into a black database crashes trunk, OK with 3.2.5

svn: r16692
This commit is contained in:
Michiel Nauta 2011-02-22 08:04:04 +00:00
parent 1923e77a87
commit 45b99dabd2

View File

@ -2282,8 +2282,8 @@ class GedcomParser(UpdateCallback):
Parses the opened GEDCOM file.
"""
no_magic = self.maxpeople < 1000
with DbTxn(_("GEDCOM import"), self.dbase, not use_trans, no_magic
) as self.trans:
with DbTxn(_("GEDCOM import"), self.dbase, not use_trans,
no_magic=no_magic) as self.trans:
self.dbase.disable_signals()
self.__parse_header_head()