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:
Tim Waugh 2003-11-01 16:01:36 +00:00
parent 550870269f
commit 1810846114
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
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
surname element after last individual with that surname is
removed (bug #834105).

View File

@ -1252,6 +1252,7 @@ class Gramps:
for sel in mlist:
p = self.db.getPerson(sel)
self.active_person = p
name = GrampsCfg.nameof(p)
QuestionDialog(_('Delete %s?') % name,
@ -1263,6 +1264,8 @@ class Gramps:
_('_Delete Person'),
self.delete_person_response)
self.update_display(0)
def delete_person_response(self):
for family in self.active_person.getFamilyList():
if not family:
@ -1296,7 +1299,6 @@ class Gramps:
else:
self.change_active_person(None)
self.redraw_histmenu()
self.update_display(0)
Utils.modified()
def merge_update(self,p1,p2,old_id):