From e1a3a9e0776d739f197b21f6ed8af2cb945150c8 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Mon, 28 May 2012 19:04:59 +0200 Subject: [PATCH] Fixed a harmless mistake that I made 80 commits earlier --- deluge/ui/console/modes/alltorrents.py | 2 +- deluge/ui/console/modes/legacy.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 620bf4651..1b88b6261 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -332,7 +332,7 @@ class AllTorrents(BaseMode, component.Component): "seeding_time","time_added","distributed_copies", "num_pieces", "piece_length","save_path"] - self.legacy_mode = Legacy(self.stdscr,self.config,self.encoding) + self.legacy_mode = Legacy(self.stdscr, self.encoding) # component start/update def start(self): diff --git a/deluge/ui/console/modes/legacy.py b/deluge/ui/console/modes/legacy.py index 0c607b328..172dca5bd 100644 --- a/deluge/ui/console/modes/legacy.py +++ b/deluge/ui/console/modes/legacy.py @@ -108,7 +108,7 @@ def commonprefix(m): class Legacy(BaseMode, component.Component): - def __init__(self, stdscr, console_config, encoding=None): + def __init__(self, stdscr, encoding=None): component.Component.__init__(self, "LegacyUI") @@ -135,7 +135,7 @@ class Legacy(BaseMode, component.Component): # Get a handle to the main console self.console = component.get("ConsoleUI") - self.console_config = console_config + self.console_config = component.get("AllTorrents").config # show the cursor curses.curs_set(2)