Commit 9376ce46 authored by Dan Pascu's avatar Dan Pascu

Guarantee the order of operations when search textbox text changes

parent 3275c83d
......@@ -116,7 +116,6 @@ class MainWindow(base_class, ui_class):
self.mute_button.clicked.connect(self._SH_MuteButtonClicked)
self.search_box.textChanged.connect(self._SH_SearchBoxTextChanged)
self.search_box.textChanged.connect(self.contact_search_model.setFilterFixedString)
self.search_box.returnPressed.connect(self._SH_SearchBoxReturnPressed)
self.search_box.shortcut.activated.connect(self.search_box.setFocus)
......@@ -466,6 +465,7 @@ class MainWindow(base_class, ui_class):
session_manager.start_call(None, address)
def _SH_SearchBoxTextChanged(self, text):
self.contact_search_model.setFilterFixedString(text)
account_manager = AccountManager()
if text:
self.switch_view_button.view = SwitchViewButton.ContactView
......
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