* src/DataViews/_Relationship.py: handle person set to None

svn: r6920
This commit is contained in:
Don Allingham 2006-06-20 02:50:38 +00:00
parent 54eab375a6
commit e989a73aea
2 changed files with 15 additions and 12 deletions

View File

@ -1,4 +1,5 @@
2006-06-19 Don Allingham <don@gramps-project.org>
* src/DataViews/_Relationship.py: handle person set to None
* src/ViewManger.py: try tabs on the side
* src/DisplayTabs/_PersonRefEmbedList.py: change Relationships to
Associations

View File

@ -121,49 +121,49 @@ class RelationshipView(PageView.PersonNavView):
if self.dbstate.active:
while not self.change_person(self.dbstate.active.handle):
pass
self.dirty = False
else:
self.dirty = True
self.change_person(None)
self.dirty = False
def person_rebuild(self):
if self.dbstate.active:
while not self.change_person(self.dbstate.active.handle):
pass
self.dirty = False
else:
self.dirty = True
self.change_person(None)
self.dirty = False
def family_update(self, handle_list):
if self.dbstate.active:
while not self.change_person(self.dbstate.active.handle):
pass
self.dirty = False
else:
self.dirty = True
self.change_person(None)
self.dirty = False
def family_add(self, handle_list):
if self.dbstate.active:
while not self.change_person(self.dbstate.active.handle):
pass
self.dirty = False
else:
self.dirty = True
self.change_person(None)
self.dirty = False
def family_delete(self, handle_list):
if self.dbstate.active:
while not self.change_person(self.dbstate.active.handle):
pass
self.dirty = False
else:
self.dirty = True
self.change_person(None)
self.dirty = False
def family_rebuild(self):
if self.dbstate.active:
while not self.change_person(self.dbstate.active.handle):
pass
self.dirty = False
else:
self.dirty = True
self.change_person(None)
self.dirty = False
def get_stock(self):
"""
@ -278,6 +278,8 @@ class RelationshipView(PageView.PersonNavView):
if self.dbstate.active:
self.handle_history(self.dbstate.active.handle)
self.change_person(self.dbstate.active.handle)
else:
self.change_person(None)
def change_person(self, obj):
if self.redrawing: