Author: andar

Revision: 5453

Log:
        Make sure child folders of renamed folders are properly renamed in the 
torrent options

Diff:
Modified: trunk/deluge/ui/gtkui/addtorrentdialog.py
===================================================================
--- trunk/deluge/ui/gtkui/addtorrentdialog.py   2009-07-05 16:19:47 UTC (rev 
5452)
+++ trunk/deluge/ui/gtkui/addtorrentdialog.py   2009-07-05 16:25:05 UTC (rev 
5453)
@@ -844,16 +844,16 @@
                 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



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to