Bug8723: Missing [edit buttons] in relationship view (#391)

Shows edit-Buttons by default only if familytree is not readonly
This commit is contained in:
Sam Manzi 2017-05-16 10:26:46 +10:00 committed by GitHub
parent 6a35246e08
commit bef4b309b6

View File

@ -814,8 +814,8 @@ class RelationshipView(NavigationView):
call_fcn = self.add_family
del_fcn = self.delete_family
if not self.toolbar_visible and not self.dbstate.db.readonly:
# Show edit-Buttons if toolbar is not visible
if not self.dbstate.db.readonly:
# Show edit-Buttons only if db is not readonly
if self.reorder_sensitive:
add = widgets.IconButton(self.reorder_button_press, None,
'view-sort-ascending')