From 3c0f1978aa5d3683f2a05fdc431e8d1fd8643b52 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Thu, 15 Aug 2013 14:32:14 +0400 Subject: [PATCH] Auto clear/hide search when open a chat. --- src/roster_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index ffc3dfe9b..792841c28 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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)