From 66fc6893ea90758258551f0dce5bd07f2fc874be Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 5 Sep 2013 22:47:02 +0000 Subject: [PATCH] Fix bug listing gramplets already in gramplet bar svn: r23041 --- gramps/gui/widgets/grampletpane.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gui/widgets/grampletpane.py b/gramps/gui/widgets/grampletpane.py index 2ba5f4c55..271c136eb 100644 --- a/gramps/gui/widgets/grampletpane.py +++ b/gramps/gui/widgets/grampletpane.py @@ -112,9 +112,9 @@ def GET_AVAILABLE_GRAMPLETS(name): return None def GET_GRAMPLET_LIST(nav_type, skip): - return [(gplug.gramplet_title, gplug.id) + return [(gplug.gramplet_title, gplug.id) for gplug in PLUGMAN.get_reg_gramplets() - if gplug.navtypes == [] or nav_type in gplug.navtypes + if (gplug.navtypes == [] or nav_type in gplug.navtypes) and gplug.name not in skip] def parse_tag_attr(text):