From dd78a75ca837b55a355a64c741cf83082a33573a Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 27 May 2011 19:02:56 +0100 Subject: [PATCH] Fix #1860 - Files Tab TypeError (could not parse subscript as a tree path) --- deluge/ui/gtkui/files_tab.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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):