don't clear selection buffer when enabling roster filtering. Fixes #7233
This commit is contained in:
parent
62da971381
commit
f310a41471
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue