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):