Commit 403cced6 authored by Luci Stanescu's avatar Luci Stanescu

Ignore Return pressed in search box when it is empty

parent aec9fcfe
...@@ -261,8 +261,9 @@ class MainWindow(base_class, ui_class): ...@@ -261,8 +261,9 @@ class MainWindow(base_class, ui_class):
def _SH_SearchBoxReturnPressed(self): def _SH_SearchBoxReturnPressed(self):
address = unicode(self.search_box.text()) address = unicode(self.search_box.text())
session_manager = SessionManager() if address:
session_manager.start_call(None, address) session_manager = SessionManager()
session_manager.start_call(None, address)
def _SH_SearchBoxTextChanged(self, text): def _SH_SearchBoxTextChanged(self, text):
account_manager = AccountManager() account_manager = AccountManager()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment