From 5ae242472f54c26207b1357e8eba22fc2a5c4f1d Mon Sep 17 00:00:00 2001 From: Nick Lanham Date: Thu, 24 Feb 2011 12:11:14 +0100 Subject: [PATCH] don't search for empty string in alltorrents.py --- deluge/ui/console/modes/alltorrents.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 5343383b6..157b07276 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -622,7 +622,10 @@ class AllTorrents(BaseMode): self.entering_search = False elif c == 10 or c == curses.KEY_ENTER: self.entering_search = False - self.__do_search() + if self.search_string: + self.__do_search() + else: + self.search_string = None elif c > 31 and c < 256: stroke = chr(c) uchar = ""