Module: deluge Branch: master Commit: 2b04955128bc83e1f956ff6fb0e52adec8eb435c
Author: Nick Lanham <[email protected]> Date: Tue Feb 22 13:39:20 2011 +0100 don't double add current torrent on action popup --- deluge/ui/console/modes/alltorrents.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 56ca031..3acb2b8 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 -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
