Make sure child folders of renamed folders are properly renamed in the torrent options
This commit is contained in:
parent
1b29d267cc
commit
75338d8a9e
|
@ -844,16 +844,16 @@ class AddTorrentDialog(component.Component):
|
||||||
if not row:
|
if not row:
|
||||||
return
|
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
|
# Get the file path base once, since it will be the same for
|
||||||
# all siblings
|
# all siblings
|
||||||
file_path_base = self.get_file_path(self.files_treestore.iter_parent(row))
|
file_path_base = self.get_file_path(self.files_treestore.iter_parent(row))
|
||||||
|
|
||||||
# Iterate through all the siblings at this level
|
# Iterate through all the siblings at this level
|
||||||
while row:
|
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]
|
index = self.files_treestore[row][3]
|
||||||
|
|
||||||
# Don't do anything if this is a folder
|
# Don't do anything if this is a folder
|
||||||
|
|
Loading…
Reference in New Issue