parent
05dd44cfe2
commit
9c5951a9e9
@ -55,6 +55,7 @@ from .. import widgets
|
||||
from ..managedwindow import ManagedWindow
|
||||
from ..dialog import OptionDialog
|
||||
from ..selectors import SelectorFactory
|
||||
from gramps.gen.errors import HandleError
|
||||
from gramps.gen.display.name import displayer as _nd
|
||||
from gramps.gen.display.place import displayer as _pd
|
||||
from gramps.gen.filters import GenericFilterFactory, GenericFilter, rules
|
||||
@ -653,6 +654,7 @@ class GuiPersonOption(Gtk.Box):
|
||||
gid = self.__option.get_value()
|
||||
|
||||
# Pick up the active person
|
||||
try:
|
||||
person_handle = self.__uistate.get_active('Person')
|
||||
person = self.__dbstate.db.get_person_from_handle(person_handle)
|
||||
|
||||
@ -666,6 +668,8 @@ class GuiPersonOption(Gtk.Box):
|
||||
|
||||
if not person:
|
||||
person = self.__db.find_initial_person()
|
||||
except HandleError:
|
||||
person = None
|
||||
|
||||
self.__update_person(person)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user