Fixed loading of places and goto person switching back to first page

svn: r1580
This commit is contained in:
Don Allingham 2003-05-23 01:47:36 +00:00
parent 6af846be29
commit 0127273296

View File

@ -1370,10 +1370,11 @@ class Gramps:
def goto_active_person(self): def goto_active_person(self):
if not self.active_person: if not self.active_person:
self.person_tree = self.pl_page[0] page = self.ptabs.get_current_page()
self.person_list = self.pl_page[0].tree self.person_tree = self.pl_page[page]
self.person_model = self.pl_page[0].model self.person_list = self.pl_page[page].tree
self.ptabs.set_current_page(0) self.person_model = self.pl_page[page].model
self.ptabs.set_current_page(page)
return return
id = self.active_person.getId() id = self.active_person.getId()
@ -1599,6 +1600,7 @@ class Gramps:
self.source_view.load_sources() self.source_view.load_sources()
elif page == 4: elif page == 4:
self.enable_buttons(1) self.enable_buttons(1)
self.place_view.load_places()
self.merge_button.set_sensitive(1) self.merge_button.set_sensitive(1)
elif page == 5: elif page == 5:
self.enable_buttons(1) self.enable_buttons(1)