From 8f347c291c13bd5ac3d3509b0132bfaa90e2cab8 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Sun, 1 Mar 2020 14:38:38 +0100 Subject: [PATCH] Label: hook into tabRemoved signal Signed-off-by: Juraj Oravec --- tabcounter/label.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tabcounter/label.py b/tabcounter/label.py index 6ae90ae..7a09206 100644 --- a/tabcounter/label.py +++ b/tabcounter/label.py @@ -40,6 +40,7 @@ class Label(QtWidgets.QLabel): self.updateText() self.window.tabWidget().changed.connect(self.updateText) + self.window.tabWidget().tabRemoved.connect(self.updateText) def id(self): return "tab-counter-button"