summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--deluge/ui/console/modes/torrentdetail.py4
1 files changed, 4 insertions, 0 deletions
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()