diff --git a/deluge/tests/test_files_tab.py b/deluge/tests/test_files_tab.py index 3e5bb0cac..5625010ea 100644 --- a/deluge/tests/test_files_tab.py +++ b/deluge/tests/test_files_tab.py @@ -48,7 +48,7 @@ class FilesTabTestCase(BaseTestCase): return component.shutdown() def print_treestore(self, title, treestore): - root = treestore.get_iter_root() + root = treestore.get_iter_first() level = 1 def p_level(s, l): @@ -79,7 +79,7 @@ class FilesTabTestCase(BaseTestCase): i += 1 return True - return _verify_treestore(treestore.get_iter_root(), tree) + return _verify_treestore(treestore.get_iter_first(), tree) def test_files_tab(self): self.filestab.files_list[self.t_id] = ( diff --git a/deluge/ui/gtk3/files_tab.py b/deluge/ui/gtk3/files_tab.py index 1716d6d80..40adf62c4 100644 --- a/deluge/ui/gtk3/files_tab.py +++ b/deluge/ui/gtk3/files_tab.py @@ -413,7 +413,6 @@ class FilesTab(Tab): def update_folder_percentages(self): """Go through the tree and update the folder complete percentages.""" - # FIXME Why changed? Was: self.treestore.get_iter_root() root = self.treestore.get_iter_first() if root is None or self.treestore[root][5] != -1: return