From 18108461140e750690199dd31d20dd47453e294a Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Sat, 1 Nov 2003 16:01:36 +0000 Subject: [PATCH] 2003-11-01 Tim Waugh * src/gramps_main.py (Gramps.delete_person_clicked): Fix removal of multiple people at once (bug #834102). svn: r2305 --- gramps2/ChangeLog | 3 +++ gramps2/src/gramps_main.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 371ad29be..04d5477bb 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,5 +1,8 @@ 2003-11-01 Tim Waugh + * 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). diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index 7f5feb9a7..57bc77ee5 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -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):