From 666bb0951352164e3ef104f705211109aa4a2679 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Wed, 21 Nov 2012 02:14:12 -0500 Subject: [PATCH] Make sure queue order is preserved when restarting daemon. --- deluge/core/torrentmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()