* 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 51ae992dab
commit 6f0c94853d
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,6 @@
2006-06-17 Don Allingham <don@gramps-project.org> 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 * src/Selectors/_BaseSelector.py (BaseSelector.run): handle
delete event delete event
* src/DataViews/_RelationView.py: remove debug statement * src/DataViews/_RelationView.py: remove debug statement

View File

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