2006-06-21 Don Allingham <don@gramps-project.org>
* src/Editors/_EditFamily.py: Don't attempt to be too clever and swap families if a duplicate is found. Just warn, and continue. svn: r6943
This commit is contained in:
parent
1d830a0e43
commit
a5a4eed7fc
@ -1,3 +1,7 @@
|
||||
2006-06-21 Don Allingham <don@gramps-project.org>
|
||||
* src/Editors/_EditFamily.py: Don't attempt to be too clever and
|
||||
swap families if a duplicate is found. Just warn, and continue.
|
||||
|
||||
2006-06-21 Zsolt Foldvari <zsolt.foldvari@nokia.com>
|
||||
* src/DisplayTabs/_GalleryTab.py (GalleryTab.build_interface):
|
||||
Properly add icon list.
|
||||
|
@ -652,16 +652,7 @@ class EditFamily(EditPrimary):
|
||||
mfam = set(mother.get_family_handle_list())
|
||||
common = list(mfam.intersection(ffam))
|
||||
if len(common) > 0:
|
||||
if self.add_parent:
|
||||
clist = self.obj.get_child_ref_list()
|
||||
self.obj = self.dbstate.db.get_family_from_handle(common[0])
|
||||
self.obj.add_child_ref(clist[0])
|
||||
self.close()
|
||||
try:
|
||||
EditFamily(self.dbstate,self.uistate,[],self.obj)
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
elif self.obj.handle not in common:
|
||||
if self.add_parent or self.obj.handle not in common:
|
||||
import QuestionDialog
|
||||
QuestionDialog.WarningDialog(
|
||||
_('Duplicate Family'),
|
||||
|
Loading…
Reference in New Issue
Block a user