Fix Progen import to correctly handle AKA surnames (#959)
* Fix Progen import dialog and progress meter for correct parent window * Fix Progen import to correctly handle AKA surnames Fixes #11462
This commit is contained in:
parent
9b0cf1b976
commit
e6ed0612e3
@ -258,7 +258,8 @@ class ProgenOptions(ManagedWindow):
|
|||||||
|
|
||||||
# display window if GUI active
|
# display window if GUI active
|
||||||
if self.uistate:
|
if self.uistate:
|
||||||
ManagedWindow.__init__(self, self.uistate, [], self.__class__)
|
ManagedWindow.__init__(self, self.uistate, [], self.__class__,
|
||||||
|
modal=True)
|
||||||
self._display()
|
self._display()
|
||||||
|
|
||||||
def __on_source_button_toggled(self, widget):
|
def __on_source_button_toggled(self, widget):
|
||||||
@ -580,6 +581,7 @@ class ProgenOptions(ManagedWindow):
|
|||||||
widget.grab_focus()
|
widget.grab_focus()
|
||||||
|
|
||||||
# creates a modal window and display immediatly!
|
# creates a modal window and display immediatly!
|
||||||
|
self.show()
|
||||||
self.glade.toplevel.run()
|
self.glade.toplevel.run()
|
||||||
|
|
||||||
def _collect(self):
|
def _collect(self):
|
||||||
|
@ -729,7 +729,8 @@ class ProgenParser(UpdateCallback):
|
|||||||
|
|
||||||
# provide feedback about import progress (GUI / TXT)
|
# provide feedback about import progress (GUI / TXT)
|
||||||
if self.uistate:
|
if self.uistate:
|
||||||
self.progress = ProgressMeter(_("Import from Pro-Gen"), '')
|
self.progress = ProgressMeter(_("Import from Pro-Gen"), '',
|
||||||
|
parent=self.uistate.window)
|
||||||
else:
|
else:
|
||||||
UpdateCallback.__init__(self, user.callback)
|
UpdateCallback.__init__(self, user.callback)
|
||||||
|
|
||||||
@ -1331,9 +1332,10 @@ class ProgenParser(UpdateCallback):
|
|||||||
if attr:
|
if attr:
|
||||||
person.add_attribute(attr)
|
person.add_attribute(attr)
|
||||||
else:
|
else:
|
||||||
self.__add_name(person, citation.handle, NameType.AKA,
|
self.__add_name(
|
||||||
' '.join(alias_text[0:-1]),
|
person, citation.handle if citation else None,
|
||||||
'', alias_text[-1].split(), '')
|
NameType.AKA, ' '.join(alias_text[0:-1]),
|
||||||
|
'', alias_text[-1], '')
|
||||||
|
|
||||||
# process F09 Person Code
|
# process F09 Person Code
|
||||||
refn_code = recflds[person_ix[9]] # F09: INDI REFN/INDI CODE
|
refn_code = recflds[person_ix[9]] # F09: INDI REFN/INDI CODE
|
||||||
|
Loading…
Reference in New Issue
Block a user