Auto clear/hide search when open a chat.
This commit is contained in:
parent
3be422c0ec
commit
3c0f1978aa
|
@ -4059,8 +4059,6 @@ class RosterWindow:
|
||||||
When an iter is activated (double-click or single click if gnome is set
|
When an iter is activated (double-click or single click if gnome is set
|
||||||
this way)
|
this way)
|
||||||
"""
|
"""
|
||||||
if self.rfilter_enabled:
|
|
||||||
self.disable_rfilter()
|
|
||||||
model = self.modelfilter
|
model = self.modelfilter
|
||||||
account = model[path][C_ACCOUNT]
|
account = model[path][C_ACCOUNT]
|
||||||
type_ = model[path][C_TYPE]
|
type_ = model[path][C_TYPE]
|
||||||
|
@ -4070,6 +4068,8 @@ class RosterWindow:
|
||||||
else:
|
else:
|
||||||
self.tree.expand_row(path, False)
|
self.tree.expand_row(path, False)
|
||||||
return
|
return
|
||||||
|
if self.rfilter_enabled:
|
||||||
|
self.disable_rfilter()
|
||||||
jid = model[path][C_JID]
|
jid = model[path][C_JID]
|
||||||
resource = None
|
resource = None
|
||||||
contact = gajim.contacts.get_contact_with_highest_priority(account, jid)
|
contact = gajim.contacts.get_contact_with_highest_priority(account, jid)
|
||||||
|
|
Loading…
Reference in New Issue