2003-11-01 Tim Waugh <twaugh@redhat.com>
* src/gramps_main.py (Gramps.delete_person_clicked): Fix removal of multiple people at once (bug #834102). svn: r2305
This commit is contained in:
parent
d07a9b77e1
commit
38e4401965
@ -1,5 +1,8 @@
|
|||||||
2003-11-01 Tim Waugh <twaugh@redhat.com>
|
2003-11-01 Tim Waugh <twaugh@redhat.com>
|
||||||
|
|
||||||
|
* src/gramps_main.py (Gramps.delete_person_clicked): Fix removal
|
||||||
|
of multiple people at once (bug #834102).
|
||||||
|
|
||||||
* src/PeopleStore.py (PeopleStore.remove): Remove
|
* src/PeopleStore.py (PeopleStore.remove): Remove
|
||||||
surname element after last individual with that surname is
|
surname element after last individual with that surname is
|
||||||
removed (bug #834105).
|
removed (bug #834105).
|
||||||
|
@ -1252,6 +1252,7 @@ class Gramps:
|
|||||||
|
|
||||||
for sel in mlist:
|
for sel in mlist:
|
||||||
p = self.db.getPerson(sel)
|
p = self.db.getPerson(sel)
|
||||||
|
self.active_person = p
|
||||||
name = GrampsCfg.nameof(p)
|
name = GrampsCfg.nameof(p)
|
||||||
|
|
||||||
QuestionDialog(_('Delete %s?') % name,
|
QuestionDialog(_('Delete %s?') % name,
|
||||||
@ -1263,6 +1264,8 @@ class Gramps:
|
|||||||
_('_Delete Person'),
|
_('_Delete Person'),
|
||||||
self.delete_person_response)
|
self.delete_person_response)
|
||||||
|
|
||||||
|
self.update_display(0)
|
||||||
|
|
||||||
def delete_person_response(self):
|
def delete_person_response(self):
|
||||||
for family in self.active_person.getFamilyList():
|
for family in self.active_person.getFamilyList():
|
||||||
if not family:
|
if not family:
|
||||||
@ -1296,7 +1299,6 @@ class Gramps:
|
|||||||
else:
|
else:
|
||||||
self.change_active_person(None)
|
self.change_active_person(None)
|
||||||
self.redraw_histmenu()
|
self.redraw_histmenu()
|
||||||
self.update_display(0)
|
|
||||||
Utils.modified()
|
Utils.modified()
|
||||||
|
|
||||||
def merge_update(self,p1,p2,old_id):
|
def merge_update(self,p1,p2,old_id):
|
||||||
|
Loading…
Reference in New Issue
Block a user