* src/gramps_main.py (on_merge_activate,on_fast_merge_activate): only merge if exactly two persons have been selected
svn: r4833
This commit is contained in:
parent
369fcf562e
commit
3b925c2653
@ -1,3 +1,7 @@
|
||||
2005-06-16 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||
* src/gramps_main.py (on_merge_activate,on_fast_merge_activate):
|
||||
only merge if exactly two persons have been selected
|
||||
|
||||
2005-06-15 Alex Roitman <shura@gramps-project.org>
|
||||
* src/WriteGedcom.py (GedcomWriterOptionBox.get_option_box):
|
||||
Build person-centered filters only if a person is selected.
|
||||
|
@ -1080,7 +1080,14 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
|
||||
import MergePeople
|
||||
p1 = self.db.get_person_from_handle(mlist[0])
|
||||
p2 = self.db.get_person_from_handle(mlist[1])
|
||||
merger = MergePeople.MergePeopleUI(self.db,p1,p2,self.merge_update)
|
||||
if p1 and p2:
|
||||
merger = MergePeople.MergePeopleUI(self.db,p1,p2,self.merge_update)
|
||||
else:
|
||||
msg = _("Cannot merge people.")
|
||||
msg2 = _("Exactly two people must be selected to perform a merge. "
|
||||
"A second person can be selected by holding down the "
|
||||
"control key while clicking on the desired person.")
|
||||
ErrorDialog(msg,msg2)
|
||||
elif page == PLACE_VIEW:
|
||||
self.place_view.merge()
|
||||
elif page == SOURCE_VIEW:
|
||||
@ -1103,7 +1110,14 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
|
||||
import MergePeople
|
||||
p1 = self.db.get_person_from_handle(mlist[0])
|
||||
p2 = self.db.get_person_from_handle(mlist[1])
|
||||
merger = MergePeople.Compare(self.db,p1,p2,self.merge_update)
|
||||
if p1 and p2:
|
||||
merger = MergePeople.Compare(self.db,p1,p2,self.merge_update)
|
||||
else:
|
||||
msg = _("Cannot merge people.")
|
||||
msg2 = _("Exactly two people must be selected to perform a merge. "
|
||||
"A second person can be selected by holding down the "
|
||||
"control key while clicking on the desired person.")
|
||||
ErrorDialog(msg,msg2)
|
||||
elif page == PLACE_VIEW:
|
||||
self.place_view.merge()
|
||||
elif page == SOURCE_VIEW:
|
||||
|
Loading…
Reference in New Issue
Block a user