* src/PeopleView.py: Check for null iters before removing from
the tree store. svn: r2554
This commit is contained in:
parent
319744498b
commit
933988a853
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user