Do not trigger the “tab_change” event when going over a gaptab
This commit is contained in:
parent
1133d411cd
commit
d809ba05bf
1 changed files with 1 additions and 1 deletions
|
@ -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 ###
|
||||
|
|
Loading…
Reference in a new issue