* 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 0ad9604cb5
commit d2cec36c25

View File

@ -154,6 +154,7 @@ 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]
if iter:
model.remove(iter) model.remove(iter)
del self.id2col[del_id] del self.id2col[del_id]
@ -302,6 +303,7 @@ 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]
if iter:
model.remove(iter) model.remove(iter)
del self.id2col[key] del self.id2col[key]