mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Fix #1715: AddTorrentsDialog does not display filename changes when switching between torrents
This commit is contained in:
parent
08ee3d8f69
commit
c346687510
1 changed files with 2 additions and 0 deletions
|
@ -871,6 +871,7 @@ class AddTorrentDialog(component.Component):
|
||||||
# We'll send this to the core when adding the torrent so it knows
|
# We'll send this to the core when adding the torrent so it knows
|
||||||
# what to rename before adding.
|
# what to rename before adding.
|
||||||
self.options[torrent_id]["mapped_files"][index] = file_path
|
self.options[torrent_id]["mapped_files"][index] = file_path
|
||||||
|
self.files[torrent_id][index]['path'] = file_path
|
||||||
else:
|
else:
|
||||||
# Folder!
|
# Folder!
|
||||||
def walk_tree(row):
|
def walk_tree(row):
|
||||||
|
@ -897,6 +898,7 @@ class AddTorrentDialog(component.Component):
|
||||||
|
|
||||||
# Update the file path in the mapped_files dict
|
# Update the file path in the mapped_files dict
|
||||||
self.options[torrent_id]["mapped_files"][index] = file_path
|
self.options[torrent_id]["mapped_files"][index] = file_path
|
||||||
|
self.files[torrent_id][index]['path'] = file_path
|
||||||
|
|
||||||
# Get the next siblings iter
|
# Get the next siblings iter
|
||||||
row = self.files_treestore.iter_next(row)
|
row = self.files_treestore.iter_next(row)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue