Fix #2228 : Apply-To-All in AddTorrent Dialog is copying file renames to other torrents

This commit is contained in:
Vincent Castellano 2012-12-03 23:06:25 -08:00 committed by Calum Lind
parent e4d94ea528
commit b50c848054
1 changed files with 4 additions and 3 deletions

View File

@ -805,14 +805,15 @@ class AddTorrentDialog(component.Component):
self.save_torrent_options(row)
# The options we want all the torrents to have
options = self.options[model.get_value(row, 0)]
# The options, except file renames, we want all the torrents to have
options = self.options[model.get_value(row, 0)].copy()
del options["mapped_files"]
# Set all the torrent options
row = model.get_iter_first()
while row != None:
torrent_id = model.get_value(row, 0)
self.options[torrent_id] = options
self.options[torrent_id].update(options)
row = model.iter_next(row)
def _on_button_revert_clicked(self, widget):