diff options
author | Chase Sterling <chase.sterling@gmail.com> | 2012-11-21 02:14:12 -0500 |
---|---|---|
committer | Chase Sterling <chase.sterling@gmail.com> | 2012-11-21 02:14:12 -0500 |
commit | 666bb0951352164e3ef104f705211109aa4a2679 (patch) | |
tree | f24ef70d36e63190bee152285196fd7ac94426fc | |
parent | 7d88cb1850eaf4d15646bdbf919b4451de0cbfea (diff) | |
download | deluge-666bb0951352164e3ef104f705211109aa4a2679.tar.gz deluge-666bb0951352164e3ef104f705211109aa4a2679.tar.bz2 deluge-666bb0951352164e3ef104f705211109aa4a2679.zip |
Make sure queue order is preserved when restarting daemon.
-rw-r--r-- | deluge/core/torrentmanager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index c39a72b9b..fee10dc5b 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -641,7 +641,7 @@ class TorrentManager(component.Component): # Reorder the state.torrents list to add torrents in the correct queue # order. - state.torrents.sort(key=operator.attrgetter("queue")) + state.torrents.sort(key=operator.attrgetter("queue"), reverse=self.config["queue_new_to_top"]) resume_data = self.load_resume_data_file() |