mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 10:28:39 +00:00
Fix saving file priorities when switching torrents in the
addtorrentdialog
This commit is contained in:
parent
8ca8c5de05
commit
8c2b735a8b
1 changed files with 1 additions and 5 deletions
|
@ -385,11 +385,7 @@ class AddTorrentDialog(component.Component):
|
||||||
self.options[torrent_id] = options
|
self.options[torrent_id] = options
|
||||||
|
|
||||||
# Save the file priorities
|
# Save the file priorities
|
||||||
(model, srow) = self.listview_torrents.get_selection().get_selected()
|
files_priorities = self.build_priorities(
|
||||||
if srow and model[srow][0] != torrent_id:
|
|
||||||
files_priorities = [1] * len(self.files[torrent_id])
|
|
||||||
else:
|
|
||||||
files_priorities = self.build_priorities(
|
|
||||||
self.files_treestore.get_iter_first(), {})
|
self.files_treestore.get_iter_first(), {})
|
||||||
|
|
||||||
if len(files_priorities) > 0:
|
if len(files_priorities) > 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue