Updated "move selection with queue" feature to reflect changes in behavior

This commit is contained in:
Asmageddon 2012-03-12 19:44:04 +01:00
parent 010fd165c6
commit 459c4aebb9
1 changed files with 1 additions and 2 deletions

View File

@ -94,8 +94,7 @@ def torrent_action(idx, data, mode, ids):
if tq in mode.marked: if tq in mode.marked:
selected_num += 1 selected_num += 1
if qact == ACTION.QUEUE_TOP: if qact == ACTION.QUEUE_TOP:
#mode.cursel = 1 + sorted(mode.marked).index(mode.cursel) mode.cursel = 1 + sorted(mode.marked).index(mode.cursel)
mode.cursel = selected_num - sorted(mode.marked).index(mode.cursel)
mode.marked = range(1, selected_num + 1) mode.marked = range(1, selected_num + 1)
elif qact == ACTION.QUEUE_UP: elif qact == ACTION.QUEUE_UP:
mode.cursel = max(1, mode.cursel - 1) mode.cursel = max(1, mode.cursel - 1)