From a66bd5e847654f1adf1389d239224a1edd29fce0 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Fri, 8 Jun 2012 17:48:08 +0200 Subject: [PATCH] Fix crash when entering unicode characters from keyboard into an input popup --- deluge/ui/console/modes/input_popup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/input_popup.py b/deluge/ui/console/modes/input_popup.py index 45ea7e829..84278841b 100644 --- a/deluge/ui/console/modes/input_popup.py +++ b/deluge/ui/console/modes/input_popup.py @@ -718,7 +718,7 @@ class TextInput(InputField): try: uchar = stroke.decode(self.parent.encoding) except UnicodeDecodeError: - c = self.parent.stdscr.getch() + c = self.parent.parent.stdscr.getch() stroke += chr(c) if uchar: if self.cursor == len(self.value):