Bug 8128 for importgedcom and libgedcom; dialog parent=

This commit is contained in:
prculley 2016-08-02 18:42:13 -05:00
parent eeaaac060e
commit f43452e844
2 changed files with 4 additions and 2 deletions

View File

@ -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()]

View File

@ -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):