Module: deluge Branch: master Commit: b41ebe1b89cd54e5b24c596b530f45a1ccab24f3
Author: Nick <[email protected]> Date: Wed Feb 2 20:49:11 2011 +0100 don't show action popup if there are no torrents in the view --- deluge/ui/console/modes/alltorrents.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 934296f..fbf36fd 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -619,7 +619,7 @@ class AllTorrents(BaseMode): return # Enter Key - elif c == curses.KEY_ENTER or c == 10: + elif (c == curses.KEY_ENTER or c == 10) and self.numtorrents: self.marked.append(self.cursel) self.last_mark = self.cursel self._show_torrent_actions_popup() -- 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.
