Error when checking option to add Quit to Taskbar

Fixes #11290
This commit is contained in:
SNoiraud 2019-08-26 12:01:32 +02:00 committed by Nick Hall
parent e39e59c795
commit dd80e4b80e
2 changed files with 3 additions and 2 deletions

View File

@ -1137,7 +1137,7 @@ class GrampsPreferences(ConfigureDialog):
self.dbstate.db.name_formats = _nd.get_name_format(only_custom=True,
only_active=False)
def cb_grampletbar_close(self, obj, state):
def cb_grampletbar_close(self, obj):
"""
Gramplet bar close button preference callback
"""

View File

@ -403,7 +403,8 @@ class GrampletBar(Gtk.Notebook):
"""
for gramplet in self.get_children():
tablabel = self.get_tab_label(gramplet)
tablabel.use_close(config.get('interface.grampletbar-close'))
if not isinstance(tablabel, Gtk.Label):
tablabel.use_close(config.get('interface.grampletbar-close'))
def __delete_clicked(self, button, gramplet):
"""