* src/Utils.py: handle missing/invalid encoding

* src/DisplayModels/_BaseModel.py: handle None vs. 0


svn: r7997
This commit is contained in:
Don Allingham
2007-01-27 23:08:08 +00:00
parent 89428da95e
commit b5aa6154b3
5 changed files with 20 additions and 9 deletions

View File

@@ -162,7 +162,7 @@ class BaseModel(gtk.GenericTreeModel):
i += 1
index = self.indexlist.get(handle)
if index:
if index != None:
node = self.get_iter(index)
self.row_inserted(index, node)