Tweak to check that value passed is not None

svn: r12844
This commit is contained in:
Gerald Britton 2009-07-28 18:15:49 +00:00
parent b98caba34d
commit a62b15353e

View File

@ -357,7 +357,8 @@ class ListModel(object):
self.model.set_value(node, col, obj) self.model.set_value(node, col, obj)
col += 1 col += 1
self.model.set_value(node, col, info) self.model.set_value(node, col, info)
if info:
if info is not None:
self.idmap[str(info)] = node self.idmap[str(info)] = node
if select: if select:
self.sel_iter = node self.sel_iter = node