Fix setting file priorities when adding a torrent

This commit is contained in:
Andrew Resch 2009-01-22 08:22:50 +00:00
parent 71aebaffdf
commit 7167c0ecca
1 changed files with 1 additions and 1 deletions

View File

@ -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(