diff --git a/deluge/ui/gtkui/files_tab.py b/deluge/ui/gtkui/files_tab.py index 4e5af32e0..1f570a386 100644 --- a/deluge/ui/gtkui/files_tab.py +++ b/deluge/ui/gtkui/files_tab.py @@ -441,9 +441,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):