Fix saving file priorities when switching torrents in the

addtorrentdialog
This commit is contained in:
Andrew Resch 2009-02-19 06:05:11 +00:00
parent 7fde2aff36
commit 4da8274875
2 changed files with 2 additions and 5 deletions

View file

@ -1,6 +1,7 @@
Deluge 1.1.4 - (In Development)
GtkUI:
* Fix hiding bottom pane when no tabs are enabled upon restart
* Fix saving file priorities when switching torrents in the addtorrentdialog
Deluge 1.1.3 - (15 February 2009)
Core:

View file

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