From b7b9947cb504a222145b48a2f7f34d75c954a69f Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Mon, 4 Jan 2010 20:18:37 +0000 Subject: [PATCH] Make sure a family is selected. svn: r13970 --- src/PluginUtils/_GuiOptions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PluginUtils/_GuiOptions.py b/src/PluginUtils/_GuiOptions.py index 826f2b8db..8466df920 100644 --- a/src/PluginUtils/_GuiOptions.py +++ b/src/PluginUtils/_GuiOptions.py @@ -2,7 +2,7 @@ # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2008 Brian G. Matherly -# Copyright (C) 2008 Gary Burton +# Copyright (C) 2008,2010 Gary Burton # Copyright (C) 2008 Craig J. Anderson # Copyright (C) 2009 Nick Hall # @@ -592,7 +592,8 @@ class GuiFamilyOption(gtk.HBox): sel = select_class(self.__dbstate, self.__uistate, self.__track, filter=rfilter ) family = sel.run() - self.__update_family(family.get_handle()) + if family: + self.__update_family(family.get_handle()) def __update_family(self, handle): """