diff --git a/src/roster_window.py b/src/roster_window.py index d882ba3fc..0d1f78137 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -4442,6 +4442,9 @@ class RosterWindow: self.disable_rfilter() def enable_rfilter(self, search_string): + self.rfilter_entry.set_visible(True) + self.rfilter_entry.set_editable(True) + self.rfilter_entry.grab_focus() if self.rfilter_enabled: self.rfilter_entry.set_text(self.rfilter_entry.get_text() + \ search_string) @@ -4449,9 +4452,6 @@ class RosterWindow: self.rfilter_enabled = True self.rfilter_entry.set_text(search_string) self.tree.expand_all() - self.rfilter_entry.set_visible(True) - self.rfilter_entry.set_editable(True) - self.rfilter_entry.grab_focus() self.rfilter_entry.set_position(-1) def disable_rfilter(self):