From 75338d8a9e6f60054e31026dfbac2ca8b8e8b4b3 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 5 Jul 2009 16:25:05 +0000 Subject: [PATCH] Make sure child folders of renamed folders are properly renamed in the torrent options --- deluge/ui/gtkui/addtorrentdialog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index e73d00d22..f72e1ccdb 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -844,16 +844,16 @@ class AddTorrentDialog(component.Component): if not row: return - # We recurse if there are children - if self.files_treestore.iter_has_child(row): - walk_tree(self.files_treestore.iter_children(row)) - # Get the file path base once, since it will be the same for # all siblings file_path_base = self.get_file_path(self.files_treestore.iter_parent(row)) # Iterate through all the siblings at this level while row: + # We recurse if there are children + if self.files_treestore.iter_has_child(row): + walk_tree(self.files_treestore.iter_children(row)) + index = self.files_treestore[row][3] # Don't do anything if this is a folder