2007-10-03 Benny Malengier <benny.malengier@gramps-project.org>
* 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:
@@ -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():
|
||||
|
Reference in New Issue
Block a user