From d809ba05bf6fe597bcc6d526f82fc59ef6da63e3 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 3 Jan 2015 21:06:56 +0100 Subject: =?UTF-8?q?Do=20not=20trigger=20the=20=E2=80=9Ctab=5Fchange?= =?UTF-8?q?=E2=80=9D=20event=20when=20going=20over=20a=20gaptab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.py b/src/core/core.py index c3c0c05e..56b0ad2b 100644 --- a/src/core/core.py +++ b/src/core/core.py @@ -1175,7 +1175,7 @@ class Core(object): self._current_tab_nb = len(self.tabs) - 1 else: self._current_tab_nb = value - if old != self._current_tab_nb: + if old != self._current_tab_nb and self.tabs[self._current_tab_nb]: self.events.trigger('tab_change', old, self._current_tab_nb) ### Opening actions ### -- cgit v1.2.3