From d07a9b77e15356a805c2a90d6c5a3f559e72a410 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Sat, 1 Nov 2003 15:34:03 +0000 Subject: [PATCH] 2003-11-01 Tim Waugh * src/PeopleStore.py (PeopleStore.remove): Remove surname element after last individual with that surname is removed (bug #834105). svn: r2304 --- ChangeLog | 5 +++++ src/PeopleStore.py | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3d5091daf..371ad29be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ 2003-11-01 Tim Waugh + + * src/PeopleStore.py (PeopleStore.remove): Remove + surname element after last individual with that surname is + removed (bug #834105). + * src/PeopleStore.py: Fixed double-click behaviour (bug #834104). 2003-10-31 Tim Waugh diff --git a/src/PeopleStore.py b/src/PeopleStore.py index 60776f958..e75e2130f 100644 --- a/src/PeopleStore.py +++ b/src/PeopleStore.py @@ -196,7 +196,10 @@ class PeopleStore: self.model.clear() def remove(self,iter): + iter_parent = self.model.iter_parent (iter) self.model.remove(iter) + if iter_parent and not self.model.iter_has_child (iter_parent): + self.model.remove (iter_parent) self.count = self.count - 1 def get_row(self,iter):