Make sure a family is selected.

svn: r13970
This commit is contained in:
Gary Burton 2010-01-04 20:18:37 +00:00
parent 6872ce1b33
commit b7b9947cb5

View File

@ -2,7 +2,7 @@
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
# Copyright (C) 2007-2008 Brian G. Matherly # 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) 2008 Craig J. Anderson
# Copyright (C) 2009 Nick Hall # Copyright (C) 2009 Nick Hall
# #
@ -592,6 +592,7 @@ class GuiFamilyOption(gtk.HBox):
sel = select_class(self.__dbstate, self.__uistate, self.__track, sel = select_class(self.__dbstate, self.__uistate, self.__track,
filter=rfilter ) filter=rfilter )
family = sel.run() family = sel.run()
if family:
self.__update_family(family.get_handle()) self.__update_family(family.get_handle())
def __update_family(self, handle): def __update_family(self, handle):