Delete empty, unknown spouse

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

View File

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