2006-12-15 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py (import2): import a readonly file properly svn: r7806
This commit is contained in:
parent
1a7fdd45d5
commit
cba1d710ab
@ -1,3 +1,6 @@
|
||||
2006-12-15 Don Allingham <don@gramps-project.org>
|
||||
* src/GrampsDb/_ReadGedcom.py (import2): import a readonly file properly (bug #765)
|
||||
|
||||
2006-12-15 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||
* src/Editors/_EditSourceRef.py,
|
||||
* src/Editors/_EditRepoRef.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))
|
||||
|
Loading…
Reference in New Issue
Block a user