diff options
author | mathieui <mathieui@mathieui.net> | 2013-05-06 20:48:37 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-05-06 20:48:37 +0200 |
commit | 3eece640622ef850b16c1e9379410049325d5965 (patch) | |
tree | 8af87aeb587a04516f0974705b3e660b561466da | |
parent | 48614d6cf04518a95bad4d9893a63a5c4f99b653 (diff) | |
download | poezio-3eece640622ef850b16c1e9379410049325d5965.tar.gz poezio-3eece640622ef850b16c1e9379410049325d5965.tar.bz2 poezio-3eece640622ef850b16c1e9379410049325d5965.tar.xz poezio-3eece640622ef850b16c1e9379410049325d5965.zip |
Fix #2284 (don’t send always send an inactive chatstate with /w)
-rw-r--r-- | src/core.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |