From 84f6e79ad6745c4fe3c529e0aeb4daa8257ccc32 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Fri, 1 Apr 2011 06:46:44 +0000 Subject: [PATCH] Fix of errormsg when loading unknown gramplet. svn: r17017 --- src/gui/grampsbar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/grampsbar.py b/src/gui/grampsbar.py index e4ae6b3c2..99434a76e 100644 --- a/src/gui/grampsbar.py +++ b/src/gui/grampsbar.py @@ -110,7 +110,8 @@ class GrampsBar(gtk.Notebook): all_opts = get_gramplet_opts(opts["name"], opts) gramplet = make_requested_gramplet(TabGramplet, self, all_opts, self.dbstate, self.uistate) - self.__add_tab(gramplet) + if gramplet: + self.__add_tab(gramplet) if len(opts_list) == 0: self.empty = True