bug 9459 GEDCOM import in CLI mode with .ged file containing ANSEL encoding tries to pop up gui
This commit is contained in:
parent
6c2eac9e05
commit
7d2a7b71d0
@ -88,7 +88,7 @@ def importData(database, filename, user):
|
||||
except IOError:
|
||||
return
|
||||
|
||||
if not gramps and ansel:
|
||||
if not gramps and ansel and user.uistate:
|
||||
top = Glade()
|
||||
code = top.get_object('codeset')
|
||||
code.set_active(0)
|
||||
|
Loading…
Reference in New Issue
Block a user