* src/DataViews/_PedigreeView.py: correctly load bookmarks, issue 1271
	* src/DataViews/_RelationView.py: correctly load bookmarks, issue 1271
	* src/PageView.py: correct bug not going to bookmark if no active person
	* src/DataViews/_MediaView.py:
	* src/DataViews/_NoteView.py:
	* src/DataViews/_RepositoryView.py:
	* src/DataViews/_SourceView.py:
	* src/DataViews/_EventView.py:
	* src/DataViews/_FamilyList.py:
	* src/DataViews/_PedigreeView.py:
	* src/DataViews/_PlaceView.py:
	* src/DataViews/_PersonView.py:
	* src/DataViews/_RelationView.py:
	after import, redraw bookmark menu


svn: r9065
This commit is contained in:
Benny Malengier
2007-10-03 16:34:51 +00:00
parent d9d93d2ad7
commit ca5a7367e2
12 changed files with 55 additions and 17 deletions

View File

@@ -745,14 +745,13 @@ class ListView(BookMarkView):
self.search_bar.setup_filter(cols)
def goto_handle(self, handle):
if not self.dbstate.active or self.inactive:
if not handle or self.inactive:
return
# mark inactive to prevent recusion
# mark inactive to prevent recursion
self.inactive = True
# select the active person in the person view
# select the handle in the view
try:
path = self.model.on_get_path(handle)
self.selection.unselect_all()
@@ -848,6 +847,13 @@ class ListView(BookMarkView):
self.model.total)
else:
self.dirty = True
def object_build(self):
"""callback, for if tree must be rebuild and bookmarks redrawn
"""
if self.active:
self.bookmarks.redraw()
self.build_tree()
def filter_toggle_action(self, obj):
if obj.get_active():