Don't load empty searches

This commit is contained in:
Manuel Cortez 2015-03-26 15:55:31 -06:00
parent 7ad1d55241
commit 9eec1c7c44

View File

@ -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: