From 2b04955128bc83e1f956ff6fb0e52adec8eb435c Mon Sep 17 00:00:00 2001 From: Nick Lanham Date: Tue, 22 Feb 2011 13:39:20 +0100 Subject: [PATCH] don't double add current torrent on action popup --- deluge/ui/console/modes/alltorrents.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 56ca031a3..3acb2b83d 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -701,7 +701,8 @@ class AllTorrents(BaseMode): # Enter Key elif (c == curses.KEY_ENTER or c == 10) and self.numtorrents: - self.marked.append(self.cursel) + if self.cursel not in self.marked: + self.marked.append(self.cursel) self.last_mark = self.cursel torrent_actions_popup(self,self._selected_torrent_ids(),details=True) return