* src/Editors/_EditPerson.py: select given name field if the

surname field is already defined


svn: r6910
This commit is contained in:
Don Allingham 2006-06-18 03:21:03 +00:00
parent 14e0783dd4
commit c6b026e6dd
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,6 @@
2006-06-17 Don Allingham <don@gramps-project.org>
* src/Editors/_EditPerson.py: select given name field if the
surname field is already defined
* src/Selectors/_BaseSelector.py (BaseSelector.run): handle
delete event
* src/DataViews/_RelationView.py: remove debug statement

View File

@ -135,7 +135,10 @@ class EditPerson(EditPrimary):
class (this class)
"""
self.load_person_image()
self.surname_field.grab_focus()
if self.pname.get_surname() and not self.pname.get_first_name():
self.given.grab_focus()
else:
self.surname_field.grab_focus()
# if not Config.get(Config.HIDE_EP_MSG):
# MessageHideDialog(