From e992ac3eab02ec59c68f59fc401600c98c408507 Mon Sep 17 00:00:00 2001 From: Nick Lanham Date: Tue, 26 Apr 2011 14:18:25 +0200 Subject: ignore key presses that only makes sense when we have a state when we don't have a state --- deluge/ui/console/modes/torrentdetail.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deluge/ui/console/modes/torrentdetail.py b/deluge/ui/console/modes/torrentdetail.py index 39f77371a..0b585b5d4 100644 --- a/deluge/ui/console/modes/torrentdetail.py +++ b/deluge/ui/console/modes/torrentdetail.py @@ -482,6 +482,10 @@ class TorrentDetail(BaseMode, component.Component): self.back_to_overview() return + if not self.torrent_state: + # actions below only makes sense if there is a torrent state + return + # Navigate the torrent list if c == curses.KEY_UP: self.file_list_up() -- cgit