mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +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
|
# Save the file priorities
|
||||||
(model, srow) = self.listview_torrents.get_selection().get_selected()
|
(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])
|
files_priorities = [1] * len(self.files[torrent_id])
|
||||||
else:
|
else:
|
||||||
files_priorities = self.build_priorities(
|
files_priorities = self.build_priorities(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue