From 745bf7d96f2726e7a654345a141c313b727176db Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 5 Sep 2013 22:46:46 +0000 Subject: [PATCH] Fix bug listing gramplets already in gramplet bar svn: r23040 --- 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):