summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtkui/addtorrentdialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/ui/gtkui/addtorrentdialog.py')
-rw-r--r--deluge/ui/gtkui/addtorrentdialog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py
index 4dc3fcaf6..03766c176 100644
--- a/deluge/ui/gtkui/addtorrentdialog.py
+++ b/deluge/ui/gtkui/addtorrentdialog.py
@@ -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(