From c346687510b5ae283b9acdc0f19de949f741ec66 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 2 Jul 2011 03:22:58 +0100 Subject: [PATCH] Fix #1715: AddTorrentsDialog does not display filename changes when switching between torrents --- deluge/ui/gtkui/addtorrentdialog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index 309e9123b..e2f8d0400 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -871,6 +871,7 @@ class AddTorrentDialog(component.Component): # We'll send this to the core when adding the torrent so it knows # what to rename before adding. self.options[torrent_id]["mapped_files"][index] = file_path + self.files[torrent_id][index]['path'] = file_path else: # Folder! def walk_tree(row): @@ -897,6 +898,7 @@ class AddTorrentDialog(component.Component): # Update the file path in the mapped_files dict self.options[torrent_id]["mapped_files"][index] = file_path + self.files[torrent_id][index]['path'] = file_path # Get the next siblings iter row = self.files_treestore.iter_next(row)