From 735f199ca7754176b89f61ef4d07326fa9db9b99 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Mon, 4 Aug 2008 22:24:57 +0000 Subject: [PATCH] Fix for bug causing broken child references when removing a child from a family. Bug #2308. svn: r10966 --- src/Editors/_EditFamily.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Editors/_EditFamily.py b/src/Editors/_EditFamily.py index 66d26842e..4e455ad66 100644 --- a/src/Editors/_EditFamily.py +++ b/src/Editors/_EditFamily.py @@ -968,10 +968,6 @@ class EditFamily(EditPrimary): self.db.add_family(self.obj, trans) self.db.transaction_commit(trans, _("Add Family")) - elif original and self.object_is_empty(): - trans = self.db.transaction_begin() - self.db.remove_family(self.obj.handle, trans) - self.db.transaction_commit(trans, _("Remove Family")) elif cmp(original.serialize(),self.obj.serialize()): trans = self.db.transaction_begin() @@ -1004,7 +1000,7 @@ class EditFamily(EditPrimary): self.db.commit_family(self.obj, trans) self.db.transaction_commit(trans, _("Edit Family")) - self.close() + self._do_close() def _cleanup_on_exit(self): (width, height) = self.window.get_size()