Delete empty, unknown spouse

svn: r1267
This commit is contained in:
Don Allingham 2003-01-22 03:45:46 +00:00
parent 46dc46a8a2
commit 4fec8fc4e4

View File

@ -219,6 +219,8 @@ class FamilyView:
QuestionDialog(_('Delete Spouse'),
_('Do you wish to remove %s as a spouse?') % name,
self.really_remove_spouse)
elif self.family and not self.family.getChildList():
self.really_remove_spouse()
def really_remove_spouse(self):
"""Delete the currently selected spouse from the family"""