mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Fix setting file priorities when adding a torrent
This commit is contained in:
parent
71aebaffdf
commit
7167c0ecca
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ class AddTorrentDialog(component.Component):
|
|||
|
||||
# Save the file priorities
|
||||
(model, srow) = self.listview_torrents.get_selection().get_selected()
|
||||
if srow != row:
|
||||
if srow and model[srow][0] != torrent_id:
|
||||
files_priorities = [1] * len(self.files[torrent_id])
|
||||
else:
|
||||
files_priorities = self.build_priorities(
|
||||
|
|
Loading…
Add table
Reference in a new issue