mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 04:54:23 +00:00
Fix file renaming for files that are not within a folder
This commit is contained in:
parent
f8ad5ddb37
commit
4e79fe3f7d
@ -486,7 +486,12 @@ class FilesTab(Tab):
|
||||
return fp
|
||||
return fp
|
||||
|
||||
# Only recurse if file is in a folder..
|
||||
if self.treestore.iter_parent(itr):
|
||||
filepath = get_filepath(itr, str()) + new_text
|
||||
else:
|
||||
filepath = new_text
|
||||
|
||||
log.debug("filepath: %s", filepath)
|
||||
|
||||
client.rename_files(self.torrent_id, [(index, filepath)])
|
||||
|
Loading…
x
Reference in New Issue
Block a user