mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
Apply last fix to 1.1.0_RC
This commit is contained in:
parent
1badf02826
commit
39063b872b
1 changed files with 7 additions and 0 deletions
|
@ -555,6 +555,10 @@ class FilesTab(Tab):
|
|||
|
||||
def _on_torrent_file_renamed_signal(self, torrent_id, index, name):
|
||||
log.debug("index: %s name: %s", index, name)
|
||||
|
||||
if torrent_id not in self.files_list:
|
||||
return
|
||||
|
||||
old_name = self.files_list[torrent_id][index]["path"]
|
||||
self.files_list[torrent_id][index]["path"] = name
|
||||
|
||||
|
@ -703,6 +707,9 @@ class FilesTab(Tab):
|
|||
log.debug("on_torrent_folder_renamed_signal")
|
||||
log.debug("old_folder: %s new_folder: %s", old_folder, new_folder)
|
||||
|
||||
if torrent_id not in self.files_list:
|
||||
return
|
||||
|
||||
if old_folder[-1] != "/":
|
||||
old_folder += "/"
|
||||
if new_folder[-1] != "/":
|
||||
|
|
Loading…
Add table
Reference in a new issue