From 459c4aebb906d2044b68f8c5afef70bc59ed8d6a Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Mon, 12 Mar 2012 19:44:04 +0100 Subject: [PATCH] Updated "move selection with queue" feature to reflect changes in behavior --- deluge/ui/console/modes/torrent_actions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deluge/ui/console/modes/torrent_actions.py b/deluge/ui/console/modes/torrent_actions.py index 15704352a..03e59cf9c 100644 --- a/deluge/ui/console/modes/torrent_actions.py +++ b/deluge/ui/console/modes/torrent_actions.py @@ -94,8 +94,7 @@ def torrent_action(idx, data, mode, ids): if tq in mode.marked: selected_num += 1 if qact == ACTION.QUEUE_TOP: - #mode.cursel = 1 + sorted(mode.marked).index(mode.cursel) - mode.cursel = selected_num - sorted(mode.marked).index(mode.cursel) + mode.cursel = 1 + sorted(mode.marked).index(mode.cursel) mode.marked = range(1, selected_num + 1) elif qact == ACTION.QUEUE_UP: mode.cursel = max(1, mode.cursel - 1)