From b41ebe1b89cd54e5b24c596b530f45a1ccab24f3 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 2 Feb 2011 20:49:11 +0100 Subject: [PATCH] don't show action popup if there are no torrents in the view --- deluge/ui/console/modes/alltorrents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 934296f26..fbf36fd67 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()