Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
4cd448de
by lovetox at 2020-06-16T22:56:32+02:00
1 changed file:
Changes:
| ... | ... | @@ -370,15 +370,17 @@ class StartChatDialog(Gtk.ApplicationWindow): |
| 370 | 370 |
return box == Search.GLOBAL
|
| 371 | 371 |
|
| 372 | 372 |
def _on_global_search_toggle(self, button):
|
| 373 |
- self._ui.search_entry.set_text('')
|
|
| 374 | 373 |
self._ui.search_entry.grab_focus()
|
| 375 | 374 |
image_style_context = button.get_children()[0].get_style_context()
|
| 376 | 375 |
if button.get_active():
|
| 377 | 376 |
image_style_context.add_class('selected-color')
|
| 378 | 377 |
self._set_listbox(self._global_search_listbox)
|
| 378 |
+ if self._ui.search_entry.get_text():
|
|
| 379 |
+ self._start_search()
|
|
| 379 | 380 |
self._remove_new_jid_row()
|
| 380 | 381 |
self._ui.listbox.invalidate_filter()
|
| 381 | 382 |
else:
|
| 383 |
+ self._ui.search_entry.set_text('')
|
|
| 382 | 384 |
image_style_context.remove_class('selected-color')
|
| 383 | 385 |
self._set_listbox(self._ui.listbox)
|
| 384 | 386 |
self._global_search_listbox.remove_all()
|