* src/PeopleView.py: Check for null iters before removing from
the tree store. svn: r2554
This commit is contained in:
		| @@ -154,6 +154,7 @@ class PeopleView: | ||||
|  | ||||
|         if self.id2col.has_key(del_id): | ||||
|             (model,iter) = self.id2col[del_id] | ||||
|             if iter: | ||||
|                 model.remove(iter) | ||||
|             del self.id2col[del_id] | ||||
|              | ||||
| @@ -302,6 +303,7 @@ class PeopleView: | ||||
|             else: | ||||
|                 if self.id2col.has_key(key): | ||||
|                     (model,iter) = self.id2col[key] | ||||
|                     if iter: | ||||
|                         model.remove(iter) | ||||
|                     del self.id2col[key] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user