Do not trigger the “tab_change” event when going over a gaptab

This commit is contained in:
mathieui 2015-01-03 21:06:56 +01:00
parent 1133d411cd
commit d809ba05bf
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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 ###