From 0127273296b9eb2be1221867040f8c0c54decfe3 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 23 May 2003 01:47:36 +0000 Subject: [PATCH] Fixed loading of places and goto person switching back to first page svn: r1580 --- gramps2/src/gramps_main.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index 5cc07d567..9d908c2af 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -1370,10 +1370,11 @@ class Gramps: def goto_active_person(self): if not self.active_person: - self.person_tree = self.pl_page[0] - self.person_list = self.pl_page[0].tree - self.person_model = self.pl_page[0].model - self.ptabs.set_current_page(0) + page = self.ptabs.get_current_page() + self.person_tree = self.pl_page[page] + self.person_list = self.pl_page[page].tree + self.person_model = self.pl_page[page].model + self.ptabs.set_current_page(page) return id = self.active_person.getId() @@ -1599,6 +1600,7 @@ class Gramps: self.source_view.load_sources() elif page == 4: self.enable_buttons(1) + self.place_view.load_places() self.merge_button.set_sensitive(1) elif page == 5: self.enable_buttons(1)