From c6b026e6dd1f525dc103a36a2e1cd292c0a9945c Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 18 Jun 2006 03:21:03 +0000 Subject: [PATCH] * src/Editors/_EditPerson.py: select given name field if the surname field is already defined svn: r6910 --- ChangeLog | 2 ++ src/Editors/_EditPerson.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3404a9edb..334d4d791 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ 2006-06-17 Don Allingham + * 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 diff --git a/src/Editors/_EditPerson.py b/src/Editors/_EditPerson.py index 46b39d962..df867c057 100644 --- a/src/Editors/_EditPerson.py +++ b/src/Editors/_EditPerson.py @@ -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(