From a15270b7c0b5349d6a1e5b8405fdb10fd96540a2 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Mon, 12 Aug 2013 10:45:51 +0400 Subject: [PATCH] Auto clear/hide search when open a chat. Fixes #7423 --- src/roster_window.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 0a48a60ac..b1989ca10 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -334,7 +334,7 @@ class RosterWindow: return iter_group def _add_entity(self, contact, account, groups=None, - big_brother_contact=None, big_brother_account=None): + big_brother_contact=None, big_brother_account=None): """ Add the given contact to roster data model @@ -1154,7 +1154,8 @@ class RosterWindow: self.draw_contact(parent_jid, parent_account) return False - def draw_contact(self, jid, account, selected=False, focus=False, contact_instances=None, contact=None): + def draw_contact(self, jid, account, selected=False, focus=False, + contact_instances=None, contact=None): """ Draw the correct state image, name BUT not avatar """ @@ -4131,6 +4132,8 @@ class RosterWindow: """ When an iter is double clicked: open the first event window """ + if self.rfilter_enabled: + self.disable_rfilter() if not gajim.single_click: self.on_row_activated(widget, path)