2003-11-01 Tim Waugh <twaugh@redhat.com>

* src/PeopleStore.py (PeopleStore.remove): Remove
        surname element after last individual with that surname is
        removed (bug #834105).


svn: r2304
This commit is contained in:
Tim Waugh 2003-11-01 15:34:03 +00:00
parent a485ed0303
commit 550870269f
2 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,9 @@
2003-11-01 Tim Waugh <twaugh@redhat.com>
* 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 <twaugh@redhat.com>

View File

@ -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):