Module: deluge Branch: chunked-sessionproxy-and-gtkui-speedups Commit: dd78a75ca837b55a355a64c741cf83082a33573a
Author: Calum Lind <[email protected]> Date: Fri May 27 19:02:56 2011 +0100 Fix #1860 - Files Tab TypeError (could not parse subscript as a tree path) --- deluge/ui/gtkui/files_tab.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/files_tab.py b/deluge/ui/gtkui/files_tab.py index 4e5af32..1f570a3 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): -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
