* 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):
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user