Fix #2228 : Apply-To-All in AddTorrent Dialog is copying file renames to other torrents
This commit is contained in:
parent
e4d94ea528
commit
b50c848054
|
@ -805,14 +805,15 @@ class AddTorrentDialog(component.Component):
|
||||||
|
|
||||||
self.save_torrent_options(row)
|
self.save_torrent_options(row)
|
||||||
|
|
||||||
# The options we want all the torrents to have
|
# The options, except file renames, we want all the torrents to have
|
||||||
options = self.options[model.get_value(row, 0)]
|
options = self.options[model.get_value(row, 0)].copy()
|
||||||
|
del options["mapped_files"]
|
||||||
|
|
||||||
# Set all the torrent options
|
# Set all the torrent options
|
||||||
row = model.get_iter_first()
|
row = model.get_iter_first()
|
||||||
while row != None:
|
while row != None:
|
||||||
torrent_id = model.get_value(row, 0)
|
torrent_id = model.get_value(row, 0)
|
||||||
self.options[torrent_id] = options
|
self.options[torrent_id].update(options)
|
||||||
row = model.iter_next(row)
|
row = model.iter_next(row)
|
||||||
|
|
||||||
def _on_button_revert_clicked(self, widget):
|
def _on_button_revert_clicked(self, widget):
|
||||||
|
|
Loading…
Reference in New Issue