From 9eec1c7c448ba21bb22824515d5a7300039acb88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Thu, 26 Mar 2015 15:55:31 -0600 Subject: [PATCH] Don't load empty searches --- src/controller/mainController.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 35f9ded1..c1d789f5 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -371,7 +371,7 @@ class Controller(object): """ Searches words or users in twitter. This creates a new buffer containing the search results.""" log.debug("Creating a new search...") dlg = dialogs.search.searchDialog(value) - if dlg.get_response() == widgetUtils.OK: + if dlg.get_response() == widgetUtils.OK and dlg.get_text() != "": term = dlg.get("term") buffer = self.get_best_buffer() if dlg.get("tweets") == True: