summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-01-03 21:06:56 +0100
committermathieui <mathieui@mathieui.net>2015-01-03 21:06:56 +0100
commitd809ba05bf6fe597bcc6d526f82fc59ef6da63e3 (patch)
tree5347857bee68a51a65f088df495395365b86ca85
parent1133d411cd3fe9ad5e078ea80aa6fcb7a2e6009a (diff)
downloadpoezio-d809ba05bf6fe597bcc6d526f82fc59ef6da63e3.tar.gz
poezio-d809ba05bf6fe597bcc6d526f82fc59ef6da63e3.tar.bz2
poezio-d809ba05bf6fe597bcc6d526f82fc59ef6da63e3.tar.xz
poezio-d809ba05bf6fe597bcc6d526f82fc59ef6da63e3.zip
Do not trigger the “tab_change” event when going over a gaptab
-rw-r--r--src/core/core.py2
1 files changed, 1 insertions, 1 deletions
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 ###