Module: deluge Branch: 1.3-stable Commit: c2b5d29c6a2f265d388145e470cfed8d6d891aba
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 3cbc3f5..800e727 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): -- 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.
