Check that gramplet is in notebook before setting tab label

This commit is contained in:
Nick Hall 2015-10-15 18:02:04 +01:00
parent b5229c46f5
commit 4f14f8e4a0

View File

@ -729,7 +729,7 @@ class GuiGramplet(object):
def set_has_data(self, value):
if isinstance(self.pane, Gtk.Notebook):
if self.pane.get_tab_label(self):
if self.pane.page_num(self) != -1:
label = self.pane.get_tab_label(self)
label.set_has_data(value)