From c2b5d29c6a2f265d388145e470cfed8d6d891aba 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 3cbc3f534..800e72761 100644 --- a/deluge/ui/gtkui/files_tab.py +++ b/deluge/ui/gtkui/files_tab.py @@ -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):