From 4fec8fc4e4cef26b0a8c99ad59832aee96409a99 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 22 Jan 2003 03:45:46 +0000 Subject: [PATCH] Delete empty, unknown spouse svn: r1267 --- src/FamilyView.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FamilyView.py b/src/FamilyView.py index 8def65d5c..15d56a43e 100644 --- a/src/FamilyView.py +++ b/src/FamilyView.py @@ -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"""