From 15fdf1787b2831a1b86c9e4a0ea175f299036594 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 23 May 2003 02:12:55 +0000 Subject: [PATCH] Sort places in pulldown menus svn: r1581 --- src/EditPerson.py | 7 ++++--- src/Marriage.py | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/EditPerson.py b/src/EditPerson.py index 6029f8191..15fff96bc 100644 --- a/src/EditPerson.py +++ b/src/EditPerson.py @@ -214,9 +214,10 @@ class EditPerson: self.on_web_select_row, self.on_update_url_clicked) - self.autoplace = AutoComp.AutoCombo(self.bpcombo,self.pmap.keys()) - self.autodeath = AutoComp.AutoCombo(self.dpcombo,self.pmap.keys(), - self.autoplace) + place_list = self.pmap.keys() + place_list.sort() + self.autoplace = AutoComp.AutoCombo(self.bpcombo, place_list) + self.autodeath = AutoComp.AutoCombo(self.dpcombo, place_list, self.autoplace) self.comp = AutoComp.AutoCombo(self.sncombo,self.db.getSurnames()) self.gid.set_text(person.getId()) diff --git a/src/Marriage.py b/src/Marriage.py index 65a6b3add..091784fe5 100644 --- a/src/Marriage.py +++ b/src/Marriage.py @@ -174,7 +174,10 @@ class Marriage: else: self.lds_temple.entry.set_text("") self.seal_stat = 0 - self.autoplace = AutoComp.AutoCombo(self.lds_place,self.pmap.keys()) + + place_list = self.pmap.keys() + place_list.sort() + self.autoplace = AutoComp.AutoCombo(self.lds_place, place_list) self.build_seal_menu()