summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 ###