From 6a430ca05b756ec3d678bdb48f26fed7b8a7feaf Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Wed, 23 Nov 2016 05:55:36 +0100 Subject: [PATCH] Fix stale tab titles --- terminatorlib/notebook.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminatorlib/notebook.py b/terminatorlib/notebook.py index 27990f19..1b65b500 100755 --- a/terminatorlib/notebook.py +++ b/terminatorlib/notebook.py @@ -220,8 +220,10 @@ class Notebook(Container, Gtk.Notebook): label = self.get_tab_label(widget) if not label: dbg('unable to find label for widget: %s' % widget) + elif label.get_custom_label(): + metadata['label'] = label.get_custom_label() else: - metadata['label'] = label.get_label() + dbg('don\'t grab the label as it was not customised') return metadata def get_children(self):