Skip to content

Commit

Permalink
Fix Geography views for bad 'dbstate.is_open()' test
Browse files Browse the repository at this point in the history
Fixes #10417
  • Loading branch information
prculley committed Feb 9, 2018
1 parent b6f68c0 commit e4b6d9b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gramps/plugins/view/geoclose.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def build_tree(self):
information.
"""
self.lifeway_layer.clear_ways()
if not self.dbstate.is_open():
if not self.dbstate.open:
return
active = self.get_active()
if active:
Expand Down
2 changes: 1 addition & 1 deletion gramps/plugins/view/geoevents.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def build_tree(self):
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:
Expand Down
2 changes: 1 addition & 1 deletion gramps/plugins/view/geofamclose.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def build_tree(self):
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)
Expand Down
2 changes: 1 addition & 1 deletion gramps/plugins/view/geofamily.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def build_tree(self):
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'))
Expand Down
2 changes: 1 addition & 1 deletion gramps/plugins/view/geoperson.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def build_tree(self):
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)
Expand Down
2 changes: 1 addition & 1 deletion gramps/plugins/view/geoplaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def build_tree(self):
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:
Expand Down

0 comments on commit e4b6d9b

Please sign in to comment.