From d48d3c9c2fcc23fe75ad90e266ea3414dda7884f Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Mon, 26 Nov 2012 17:19:09 -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 bb6605569..a985d531c 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -685,7 +685,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()