From 8c2b735a8b633d30400a85161b8a1370fc6eb965 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 19 Feb 2009 06:03:11 +0000 Subject: [PATCH] Fix saving file priorities when switching torrents in the addtorrentdialog --- deluge/ui/gtkui/addtorrentdialog.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index f7084d3f3..1aa4b22b7 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -385,11 +385,7 @@ class AddTorrentDialog(component.Component): self.options[torrent_id] = options # Save the file priorities - (model, srow) = self.listview_torrents.get_selection().get_selected() - if srow and model[srow][0] != torrent_id: - files_priorities = [1] * len(self.files[torrent_id]) - else: - files_priorities = self.build_priorities( + files_priorities = self.build_priorities( self.files_treestore.get_iter_first(), {}) if len(files_priorities) > 0: