From 3eece640622ef850b16c1e9379410049325d5965 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 6 May 2013 20:48:37 +0200 Subject: =?UTF-8?q?Fix=20#2284=20(don=E2=80=99t=20send=20always=20send=20a?= =?UTF-8?q?n=20inactive=20chatstate=20with=20/w)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core.py b/src/core.py index dbc65930..0c2a93d0 100644 --- a/src/core.py +++ b/src/core.py @@ -1540,7 +1540,7 @@ class Core(object): if self.current_tab_nb == nb: return self.previous_tab_nb = self.current_tab_nb - self.current_tab().on_lose_focus() + old_tab = self.current_tab() if isinstance(nb, int): if 0 <= nb < len(self.tabs): if not self.tabs[nb]: @@ -1551,6 +1551,7 @@ class Core(object): for name in tab.matching_names(): if nb in name: self.current_tab_nb = tab.nb + old_tab.on_lose_focus() self.current_tab().on_gain_focus() self.refresh_window() -- cgit v1.2.3