Merge pull request #214 from prculley/dialog
Bug 8128 for importgedcom and libgedcom; dialog parent=
This commit is contained in:
commit
ab32d53575
@ -98,6 +98,7 @@ def importData(database, filename, user):
|
||||
code = top.get_object('codeset')
|
||||
code.set_active(0)
|
||||
dialog = top.toplevel
|
||||
dialog.set_transient_for(user.uistate.window)
|
||||
dialog.run()
|
||||
enc = ['ANSEL', 'ANSEL', 'ANSI', 'ASCII', 'UTF-8']
|
||||
code_set = enc[ code.get_active()]
|
||||
|
@ -7301,11 +7301,12 @@ class GedcomParser(UpdateCallback):
|
||||
# coding is now wrong.
|
||||
if self.genby.upper() == "LEGACY":
|
||||
fname = os.path.basename(self.filename)
|
||||
WarningDialog( # no-parent
|
||||
WarningDialog( # parent-OK
|
||||
_("Import of GEDCOM file %(filename)s with DEST=%(by)s, "
|
||||
"could cause errors in the resulting database!")
|
||||
% {'filename': fname, 'by': self.genby},
|
||||
_("Look for nameless events.")
|
||||
_("Look for nameless events."),
|
||||
parent=self.user.uistate.window
|
||||
)
|
||||
|
||||
def __header_char(self, line, state):
|
||||
|
Loading…
Reference in New Issue
Block a user