From 7167c0ecca1b4ceaf1b0b93b6fc6a2c855d8b1f3 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 22 Jan 2009 08:22:50 +0000 Subject: [PATCH] Fix setting file priorities when adding a torrent --- deluge/ui/gtkui/addtorrentdialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(