Module: deluge Branch: master Commit: 5ae242472f54c26207b1357e8eba22fc2a5c4f1d
Author: Nick Lanham <[email protected]> Date: Thu Feb 24 12:11:14 2011 +0100 don't search for empty string in alltorrents.py --- deluge/ui/console/modes/alltorrents.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 5343383..157b072 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 = "" -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
