Fix Geography views for bad 'dbstate.is_open()' test

Fixes #10417
This commit is contained in:
prculley 2018-02-09 09:01:41 -06:00
parent b6f68c03bb
commit e4b6d9beda
6 changed files with 6 additions and 6 deletions

View File

@ -314,7 +314,7 @@ class GeoClose(GeoGraphyView):
information.
"""
self.lifeway_layer.clear_ways()
if not self.dbstate.is_open():
if not self.dbstate.open:
return
active = self.get_active()
if active:

View File

@ -188,7 +188,7 @@ class GeoEvents(GeoGraphyView):
all handling of visibility is now in rebuild_trees, see that for more
information.
"""
if not self.dbstate.is_open():
if not self.dbstate.open:
return
active = self.uistate.get_active('Event')
if active:

View File

@ -305,7 +305,7 @@ class GeoFamClose(GeoGraphyView):
information.
"""
self.lifeway_layer.clear_ways()
if not self.dbstate.is_open():
if not self.dbstate.open:
return
active = self.get_active()
family = self.dbstate.db.get_family_from_handle(active)

View File

@ -178,7 +178,7 @@ class GeoFamily(GeoGraphyView):
all handling of visibility is now in rebuild_trees, see that for more
information.
"""
if not self.dbstate.is_open():
if not self.dbstate.open:
return
if self.uistate.get_active('Family'):
self._createmap(self.uistate.get_active('Family'))

View File

@ -215,7 +215,7 @@ class GeoPerson(GeoGraphyView):
all handling of visibility is now in rebuild_trees, see that for more
information.
"""
if not self.dbstate.is_open():
if not self.dbstate.open:
return
active = self.get_active()
self._createmap(active)

View File

@ -189,7 +189,7 @@ class GeoPlaces(GeoGraphyView):
all handling of visibility is now in rebuild_trees, see that for more
information.
"""
if not self.dbstate.is_open():
if not self.dbstate.open:
return
active = self.uistate.get_active('Place')
if active: