From 933988a85336cc39b3e98798c29ed67d74d6d76c Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 25 Dec 2003 04:14:51 +0000 Subject: [PATCH] * src/PeopleView.py: Check for null iters before removing from the tree store. svn: r2554 --- src/PeopleView.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PeopleView.py b/src/PeopleView.py index 27b0a30a9..248a3ad42 100644 --- a/src/PeopleView.py +++ b/src/PeopleView.py @@ -154,7 +154,8 @@ class PeopleView: if self.id2col.has_key(del_id): (model,iter) = self.id2col[del_id] - model.remove(iter) + if iter: + model.remove(iter) del self.id2col[del_id] if person == self.parent.active_person: @@ -302,7 +303,8 @@ class PeopleView: else: if self.id2col.has_key(key): (model,iter) = self.id2col[key] - model.remove(iter) + if iter: + model.remove(iter) del self.id2col[key] for i in self.pl_page: