Fix #1860 - Files Tab TypeError (could not parse subscript as a tree path)

This commit is contained in:
Calum Lind 2011-05-27 19:02:56 +01:00
parent a3d2b41b54
commit c2b5d29c6a

View file

@ -438,9 +438,8 @@ class FilesTab(Tab):
"""
Go through the tree and update the folder complete percentages.
"""
root = self.treestore.get_iter_root()
if self.treestore[root][5] != -1:
if root is None or self.treestore[root][5] != -1:
return
def get_completed_bytes(row):