Auto clear/hide search when open a chat.

This commit is contained in:
Denis Fomin 2013-08-15 14:32:14 +04:00
parent 3be422c0ec
commit 3c0f1978aa
1 changed files with 2 additions and 2 deletions

View File

@ -4059,8 +4059,6 @@ class RosterWindow:
When an iter is activated (double-click or single click if gnome is set
this way)
"""
if self.rfilter_enabled:
self.disable_rfilter()
model = self.modelfilter
account = model[path][C_ACCOUNT]
type_ = model[path][C_TYPE]
@ -4070,6 +4068,8 @@ class RosterWindow:
else:
self.tree.expand_row(path, False)
return
if self.rfilter_enabled:
self.disable_rfilter()
jid = model[path][C_JID]
resource = None
contact = gajim.contacts.get_contact_with_highest_priority(account, jid)