diff --git a/ChangeLog b/ChangeLog index 130bb8cce..0e2b4de68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-12-15 Don Allingham + * src/GrampsDb/_ReadGedcom.py (import2): import a readonly file properly (bug #765) + 2006-12-15 Martin Hawlisch * src/Editors/_EditSourceRef.py, * src/Editors/_EditRepoRef.py, diff --git a/src/GrampsDb/_ReadGedcom.py b/src/GrampsDb/_ReadGedcom.py index e84c2b21d..76e11a1c8 100644 --- a/src/GrampsDb/_ReadGedcom.py +++ b/src/GrampsDb/_ReadGedcom.py @@ -239,7 +239,10 @@ def import2(database, filename, callback, codeset, use_trans): use_trans = False try: + ro = database.readonly + database.readonly = False close = g.parse_gedcom_file(use_trans) + database.readonly = ro except IOError,msg: errmsg = _("%s could not be opened\n") % filename ErrorDialog(errmsg,str(msg))