Fix stale tab titles

This commit is contained in:
Stephen Boddy 2016-11-23 05:55:36 +01:00
parent 566ca62bb6
commit 6a430ca05b
1 changed files with 3 additions and 1 deletions

View File

@ -220,8 +220,10 @@ class Notebook(Container, Gtk.Notebook):
label = self.get_tab_label(widget) label = self.get_tab_label(widget)
if not label: if not label:
dbg('unable to find label for widget: %s' % widget) dbg('unable to find label for widget: %s' % widget)
elif label.get_custom_label():
metadata['label'] = label.get_custom_label()
else: else:
metadata['label'] = label.get_label() dbg('don\'t grab the label as it was not customised')
return metadata return metadata
def get_children(self): def get_children(self):