From 8678121210b22fa8ff4f70a00cc41c692159d3dd Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Mon, 28 May 2012 21:06:22 +0200 Subject: [PATCH] Made it possible to open torrent options with 'o' in detail view --- deluge/ui/console/modes/torrentdetail.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/torrentdetail.py b/deluge/ui/console/modes/torrentdetail.py index ca65e922c..349afe9ca 100644 --- a/deluge/ui/console/modes/torrentdetail.py +++ b/deluge/ui/console/modes/torrentdetail.py @@ -49,7 +49,7 @@ from add_util import add_torrent from input_popup import InputPopup import format_utils -from torrent_actions import torrent_actions_popup +from torrent_actions import torrent_actions_popup, ACTION try: import curses @@ -674,6 +674,9 @@ class TorrentDetail(BaseMode, component.Component): elif chr(c) == 'a': torrent_actions_popup(self,[self.torrentid],details=False) return + elif chr(c) == 'o': + torrent_actions_popup(self,[self.torrentid],action=ACTION.TORRENT_OPTIONS) + return elif chr(c) == 'h': self.popup = Popup(self,"Help",init_lines=self.__help_lines)