* src/PeopleView.py: Check for null iters before removing from

the tree store.


svn: r2554
This commit is contained in:
Don Allingham 2003-12-25 04:14:51 +00:00
parent 319744498b
commit 933988a853

View File

@ -154,7 +154,8 @@ class PeopleView:
if self.id2col.has_key(del_id): if self.id2col.has_key(del_id):
(model,iter) = self.id2col[del_id] (model,iter) = self.id2col[del_id]
model.remove(iter) if iter:
model.remove(iter)
del self.id2col[del_id] del self.id2col[del_id]
if person == self.parent.active_person: if person == self.parent.active_person:
@ -302,7 +303,8 @@ class PeopleView:
else: else:
if self.id2col.has_key(key): if self.id2col.has_key(key):
(model,iter) = self.id2col[key] (model,iter) = self.id2col[key]
model.remove(iter) if iter:
model.remove(iter)
del self.id2col[key] del self.id2col[key]
for i in self.pl_page: for i in self.pl_page: