Code optimizations wrt handling of None - bug 2212

svn: r10811
This commit is contained in:
Gerald Britton
2008-06-16 15:01:46 +00:00
parent 47095b4e98
commit 4982292774
124 changed files with 379 additions and 377 deletions

View File

@@ -185,7 +185,7 @@ class TreeTips(gtk.Widget):
return False
pathReturn = tree.get_path_at_pos(xEvent, yEvent)
model = tree.get_model()
if pathReturn == None:
if pathReturn is None:
self.path = None
elif self.path != pathReturn[0]:
self.path = pathReturn[0]