Module: deluge Branch: master Commit: e992ac3eab02ec59c68f59fc401600c98c408507
Author: Nick Lanham <[email protected]> Date: Tue Apr 26 14:18:25 2011 +0200 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 files changed, 4 insertions(+), 0 deletions(-) diff --git a/deluge/ui/console/modes/torrentdetail.py b/deluge/ui/console/modes/torrentdetail.py index 39f7737..0b585b5 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() -- 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.
