Fix stale tab titles

This commit is contained in:
Stephen Boddy 2016-11-23 05:55:36 +01:00
parent 566ca62bb6
commit 6a430ca05b

View File

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